From 8fd67880c225b034cc2dcfabb54e60e85905b36d Mon Sep 17 00:00:00 2001 From: aloftus23 Date: Thu, 5 Oct 2023 15:03:47 -0400 Subject: [PATCH] Fix Lambda function throw error --- backend/src/tasks/scanExecution.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/tasks/scanExecution.ts b/backend/src/tasks/scanExecution.ts index 658a447d0..163d9e6d6 100644 --- a/backend/src/tasks/scanExecution.ts +++ b/backend/src/tasks/scanExecution.ts @@ -14,7 +14,7 @@ export const handler: Handler = async (event) => { const sqsQueueUrl = process.env.SQS_QUEUE_URL!; console.log(sqsQueueUrl); - if (sqsQueueUrl) { + if (!sqsQueueUrl) { throw new Error('SQS Queue URL not found'); }