diff --git a/src/sqs/sqs.ts b/src/sqs/sqs.ts index 9f83d51abe..b31395e040 100644 --- a/src/sqs/sqs.ts +++ b/src/sqs/sqs.ts @@ -298,7 +298,7 @@ export class SqsQueue { lastAttempt }), receiveCount, - lastAttempt: receiveCount >= this.maxAttempts + lastAttempt }; context.log.info(`SQS message received. Receive count: ${receiveCount}`);