File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -52,24 +52,24 @@ async function createQueue(
52
52
sqsClient : SQS ,
53
53
opts : AdapterOptions
54
54
) {
55
- const topicName = opts ? .topicName || "socket-io" ;
55
+ const topicName = opts . topicName || "socket-io" ;
56
56
57
57
debug ( "creating topic [%s]" , topicName ) ;
58
58
59
59
const createTopicCommandOutput = await snsClient . createTopic ( {
60
60
Name : topicName ,
61
- Tags : opts ? .topicTags ,
61
+ Tags : opts . topicTags ,
62
62
} ) ;
63
63
64
64
debug ( "topic [%s] was successfully created" , topicName ) ;
65
65
66
- const queueName = `${ opts ? .queuePrefix || "socket-io" } -${ randomId ( ) } ` ;
66
+ const queueName = `${ opts . queuePrefix || "socket-io" } -${ randomId ( ) } ` ;
67
67
68
68
debug ( "creating queue [%s]" , queueName ) ;
69
69
70
70
const createQueueCommandOutput = await sqsClient . createQueue ( {
71
71
QueueName : queueName ,
72
- tags : opts ? .queueTags ,
72
+ tags : opts . queueTags ,
73
73
} ) ;
74
74
75
75
debug ( "queue [%s] was successfully created" , queueName ) ;
@@ -140,7 +140,7 @@ async function createQueue(
140
140
export function createAdapter (
141
141
snsClient : SNS ,
142
142
sqsClient : SQS ,
143
- opts : AdapterOptions & ClusterAdapterOptions
143
+ opts : AdapterOptions & ClusterAdapterOptions = { }
144
144
) {
145
145
let isClosed = false ;
146
146
let _topicArn : string ;
You can’t perform that action at this time.
0 commit comments