From 30018a5fb88d56378add8aab36b2f06823fd2e1a Mon Sep 17 00:00:00 2001 From: azdak Date: Thu, 21 Nov 2024 00:16:44 -0600 Subject: [PATCH] Update pollOutstandingScans.ts --- src/internal/pollOutstandingScans.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/internal/pollOutstandingScans.ts b/src/internal/pollOutstandingScans.ts index 95acfff..d43ccf4 100644 --- a/src/internal/pollOutstandingScans.ts +++ b/src/internal/pollOutstandingScans.ts @@ -9,9 +9,9 @@ export const pollOutstandingScans = async ({ request, reply }) => { // make sure we sort the open jobids ASC const sortedJobIds = jobs.sort((a, b) => (a.job_id - b.job_id)); - const processedJobs = []; - const failedJobs = []; - const waitingJobs = []; + let processedJobs = []; + let failedJobs = []; + let waitingJobs = []; for(const job of sortedJobIds){ // check scan for result