@@ -26,28 +26,28 @@ await createAdminUser();
26
26
27
27
logger ( LogLevel . Info , `minimum frontend client version set to ${ API_VAR . MINIMUM_APP_VERSION } ` ) ;
28
28
29
- const start = performance . now ( ) ;
29
+ app . listen ( PORT , async ( ) => {
30
+ logger ( LogLevel . Info , `server up and running on port ${ PORT } (v${ APP_VERSION } )` ) ;
30
31
31
- logger ( LogLevel . Info , `loading firebase data` , { service : 'firebase' } ) ;
32
+ const start = performance . now ( ) ;
32
33
33
- await UsersList . load ( ) ;
34
- await CongregationsList . load ( ) ;
35
- await CongregationsList . cleanupTasks ( ) ;
36
- await Flags . load ( ) ;
37
- await Installation . load ( ) ;
34
+ logger ( LogLevel . Info , `loading firebase data` , { service : 'firebase' } ) ;
38
35
39
- // non-blocking calls
40
- UsersList . removeOutdatedSessions ( ) ;
36
+ await UsersList . load ( ) ;
37
+ await CongregationsList . load ( ) ;
38
+ await CongregationsList . cleanupTasks ( ) ;
39
+ await Flags . load ( ) ;
40
+ await Installation . load ( ) ;
41
41
42
- const end = performance . now ( ) ;
43
- const durationMs = end - start ;
44
- const totalSeconds = Math . floor ( durationMs / 1000 ) ;
45
- const minutes = Math . floor ( totalSeconds / 60 ) ;
42
+ // non-blocking calls
43
+ UsersList . removeOutdatedSessions ( ) ;
46
44
47
- logger ( LogLevel . Info , `loading firebase completed` , { service : 'firebase' , duration : minutes } ) ;
45
+ const end = performance . now ( ) ;
46
+ const durationMs = end - start ;
47
+ const totalSeconds = Math . floor ( durationMs / 1000 ) ;
48
+ const minutes = Math . floor ( totalSeconds / 60 ) ;
48
49
49
- app . listen ( PORT , async ( ) => {
50
- logger ( LogLevel . Info , `server up and running on port ${ PORT } (v${ APP_VERSION } )` ) ;
50
+ logger ( LogLevel . Info , `loading firebase completed` , { service : 'firebase' , duration : minutes } ) ;
51
51
52
52
API_VAR . IS_SERVER_READY = true ;
53
53
} ) ;
0 commit comments