You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bugfix -> SNS consumer queue name is always undefined (#128)
* Fixing queueName on SNS consumer
* Adding tests to cover the bugfix
* SNS patch version
* Fixing typo
Co-authored-by: Igor Savin <iselwin@gmail.com>
---------
Co-authored-by: Igor Savin <iselwin@gmail.com>
Copy file name to clipboardExpand all lines: packages/sns/lib/utils/snsInitter.ts
+8-1Lines changed: 8 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,9 @@ export async function initSnsSqs(
31
31
'If locatorConfig.subscriptionArn is not specified, creationConfig.queue parameter is mandatory, as there will be an attempt to create the missing queue',
32
32
)
33
33
}
34
+
if(!creationConfig.queue.QueueName){
35
+
thrownewError('If locatorConfig.subscriptionArn is not specified, creationConfig.queue.QueueName parameter is mandatory, as there will be an attempt to create the missing queue')
36
+
}
34
37
if(!subscriptionConfig){
35
38
thrownewError(
36
39
'If locatorConfig.subscriptionArn is not specified, subscriptionConfig parameter is mandatory, as there will be an attempt to create the missing subscription',
@@ -58,12 +61,12 @@ export async function initSnsSqs(
58
61
return{
59
62
subscriptionArn,
60
63
topicArn,
64
+
queueName: creationConfig.queue.QueueName,
61
65
queueUrl,
62
66
}
63
67
}
64
68
65
69
// Check for existing resources, using the locators
0 commit comments