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'); }