Skip to content

Commit

Permalink
Fix Lambda function throw error
Browse files Browse the repository at this point in the history
  • Loading branch information
aloftus23 committed Oct 5, 2023
1 parent b30bc63 commit 8fd6788
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/tasks/scanExecution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

Expand Down

0 comments on commit 8fd6788

Please sign in to comment.