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;