File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import {createTerminus} from '@godaddy/terminus';
1313import http from 'http' ;
1414import { pipe } from 'fp-ts/lib/function' ;
1515import * as TE from 'fp-ts/TaskEither' ;
16+ import * as O from 'fp-ts/Option' ;
1617import { ensureEventTableExists } from './init-dependencies/event-store/ensure-events-table-exists' ;
1718import { initDependencies } from './init-dependencies' ;
1819import * as libsqlClient from '@libsql/client' ;
@@ -116,6 +117,15 @@ void (async () => {
116117 )
117118 )
118119 ) ;
120+ for ( const equipment of deps . sharedReadModel . equipment . getAll ( ) ) {
121+ deps . logger . info (
122+ 'After loading cached external events the last quiz sync for equipment %s (%s) was %s (epoch ms)' ,
123+ equipment . name ,
124+ equipment . id ,
125+ O . getOrElse < string | number > ( ( ) => 'never' ) ( equipment . lastQuizSync )
126+ ) ;
127+ }
128+
119129 await deps . sharedReadModel . asyncApplyExternalEventSources ( ) ( ) ;
120130
121131 server . listen ( conf . PORT , ( ) => {
You can’t perform that action at this time.
0 commit comments