From 1e21fc4f798e9487020dc5d9de717ba0082c84bc Mon Sep 17 00:00:00 2001 From: azdak Date: Thu, 21 Nov 2024 00:34:20 -0600 Subject: [PATCH] Update pollOutstandingScans.ts --- 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 6744bc6..ce895d1 100644 --- a/src/internal/pollOutstandingScans.ts +++ b/src/internal/pollOutstandingScans.ts @@ -28,7 +28,7 @@ export const pollOutstandingScans = async ({ request, reply }) => { failedJobs.push(job.job_id) } else if (['completed'].includes(status)) { - if(result == null){ // if result is complete but the data is empty, set processing to false; + if(result == null || result == "null" || result == undefined){ // if result is complete but the data is empty, set processing to false; await db.query({ text: `UPDATE "scans" SET "processing"=FALSE, "results"=$1 WHERE "job_id"=$2`, values: [result, job.job_id],