File tree Expand file tree Collapse file tree
apps/automatic_projects_discovery_worker/src/activities
libs/data-access-layer/src/project-catalog Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ export async function listDatasets(sourceName: string): Promise<IDatasetDescript
2525
2626 const qx = pgpQx ( svc . postgres . reader . connection ( ) )
2727 const latestSyncedAt = await findLatestProjectCatalogSyncedAt ( qx )
28- const scoredAfter = latestSyncedAt ? latestSyncedAt . toISOString ( ) . slice ( 0 , 10 ) : undefined
28+ const scoredAfter = latestSyncedAt ? latestSyncedAt . slice ( 0 , 10 ) : undefined
2929
3030 log . info ( { sourceName, scoredAfter : scoredAfter ?? 'none (full fetch)' } , 'Listing datasets.' )
3131
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ export async function countProjectCatalog(qx: QueryExecutor): Promise<number> {
8686 return parseInt ( result . count , 10 )
8787}
8888
89- export async function findLatestProjectCatalogSyncedAt ( qx : QueryExecutor ) : Promise < Date | null > {
89+ export async function findLatestProjectCatalogSyncedAt ( qx : QueryExecutor ) : Promise < string | null > {
9090 const result = await qx . selectOneOrNone (
9191 `
9292 SELECT MAX("syncedAt") AS "latestSyncedAt"
You can’t perform that action at this time.
0 commit comments