From a05ac6f526f57673efc13f3a55da8170b881426b Mon Sep 17 00:00:00 2001 From: Damian Zehnder Date: Fri, 20 Oct 2023 15:34:48 +0200 Subject: [PATCH] fix: class usage --- src/queue-wrapper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/queue-wrapper.js b/src/queue-wrapper.js index ccff8302..1565e96f 100644 --- a/src/queue-wrapper.js +++ b/src/queue-wrapper.js @@ -24,7 +24,7 @@ export default function queueWrapper(func) { throw new Error('AUDIT_RESULTS_QUEUE_URL env variable is empty/not provided'); } - context.queue = SqsQueue(region, queueUrl, log); + context.queue = new SqsQueue(region, queueUrl, log); return func(request, context); };