From eca80d30787f036e89576b705120a1af47c894e3 Mon Sep 17 00:00:00 2001 From: azdak Date: Tue, 19 Nov 2024 20:16:36 -0600 Subject: [PATCH] pollOutstandinScans testing --- src/internal/pollOutstandingScans.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/internal/pollOutstandingScans.ts b/src/internal/pollOutstandingScans.ts index 8c4bef1..e51d2cd 100644 --- a/src/internal/pollOutstandingScans.ts +++ b/src/internal/pollOutstandingScans.ts @@ -3,7 +3,7 @@ export const pollOutstandingScans = async ({ request, reply }) => { console.log(`START POLLING OPEN SCANS`); const startTime = new Date().getTime(); const jobIds = (await db.query({ - text: `SELECT s.job_id FROM scans WHERE s.processing = TRUE` + text: `SELECT job_id FROM scans WHERE s.processing = TRUE` })).rows.map(obj => obj.job_id); await db.clean(); const deltaTime = new Date().getTime() - startTime;