From cda506606e4fc4d41e7e71db2b41c81655cc6aa2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rasim=20And=C4=B1ran?= Date: Mon, 10 Jun 2024 20:36:36 +0300 Subject: [PATCH] fix: make the "opts" argument optional (#3) Related: https://github.com/socketio/socket.io-aws-sqs-adapter/issues/2 --- lib/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.ts b/lib/index.ts index 1e1e83e..9488c47 100644 --- a/lib/index.ts +++ b/lib/index.ts @@ -140,7 +140,7 @@ async function createQueue( export function createAdapter( snsClient: SNS, sqsClient: SQS, - opts: AdapterOptions & ClusterAdapterOptions + opts: AdapterOptions & ClusterAdapterOptions = {} ) { let isClosed = false; let _topicArn: string;