File tree Expand file tree Collapse file tree 1 file changed +16
-10
lines changed
Expand file tree Collapse file tree 1 file changed +16
-10
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ export interface SpaceApiState {
2828 icon : {
2929 open : string ;
3030 closed : string ;
31- }
31+ } ;
3232 lastchange : number ;
3333}
3434
@@ -40,15 +40,21 @@ export interface SpaceApiContact {
4040}
4141
4242export async function getSpaceApi ( ) : Promise < SpaceApi > {
43- const dto = await directusClient . request < SpaceApiDTO > ( readSingleton ( "SpaceAPI" ) )
44- const lastchanges = await directusClient . request ( readActivities ( {
45- collection : "SpaceAPI" ,
46- action : "update" ,
47- fields : [ "timestamp" ] ,
48- limit : 1 ,
49- sort : [ "-timestamp" ] ,
50- } ) )
51- const lastchange_timestamp = DateTime . fromISO ( lastchanges [ 0 ] . timestamp ) . toUnixInteger ( ) ;
43+ const dto = await directusClient . request < SpaceApiDTO > (
44+ readSingleton ( "SpaceAPI" ) ,
45+ ) ;
46+ const lastchanges = await directusClient . request (
47+ readActivities ( {
48+ collection : "SpaceAPI" ,
49+ action : "update" ,
50+ fields : [ "timestamp" ] ,
51+ limit : 1 ,
52+ sort : [ "-timestamp" ] ,
53+ } ) ,
54+ ) ;
55+ const lastchange_timestamp = DateTime . fromISO (
56+ lastchanges [ 0 ] . timestamp ,
57+ ) . toUnixInteger ( ) ;
5258
5359 return {
5460 api : "0.13" ,
You can’t perform that action at this time.
0 commit comments