serverless-leo
Advanced tools
Comparing version 1.3.14 to 1.3.15
@@ -69,4 +69,4 @@ 'use strict' | ||
} | ||
// Only add the queue to the bot name if there are multiple events | ||
if (sourceQueue && leoEvents.length > 1) { | ||
// Only add the queue to the bot name if there are multiple events and no prefix | ||
if (sourceQueue && !botPrefix && leoEvents.length > 1) { | ||
botId = `${this.serverless.service.service}-${stage}-${botPrefix}${sourceQueue}-${ymlFunctionName}${botSuffix}` | ||
@@ -73,0 +73,0 @@ } else { |
{ | ||
"name": "serverless-leo", | ||
"version": "1.3.14", | ||
"version": "1.3.15", | ||
"description": "Serverless plugin for leo microservices", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -176,3 +176,3 @@ 'use strict' | ||
'cron': '* * * * * *', | ||
'prefix': 'prename' | ||
'prefix': 'prename2' | ||
} | ||
@@ -184,5 +184,5 @@ } | ||
expect(sls.serverless.service.provider.compiledCloudFormationTemplate.Resources['LeoRegister0'] | ||
.Properties['hello-serverless-leo-world-dev-prename-test_hello-helloNodeWorld'].name).to.equal('prename-test_hello-helloNodeWorld') | ||
.Properties['hello-serverless-leo-world-dev-prename-helloNodeWorld'].name).to.equal('prename-helloNodeWorld') | ||
expect(sls.serverless.service.provider.compiledCloudFormationTemplate.Resources['LeoRegister0'] | ||
.Properties['hello-serverless-leo-world-dev-prename-helloNodeWorld'].name).to.equal('prename-helloNodeWorld') | ||
.Properties['hello-serverless-leo-world-dev-prename2-helloNodeWorld'].name).to.equal('prename2-helloNodeWorld') | ||
}) | ||
@@ -189,0 +189,0 @@ it('names the bot using lambda name if there is only one cron event', async () => { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
42315