serverless-leo
Advanced tools
Comparing version 1.3.10 to 1.3.11
@@ -57,3 +57,4 @@ 'use strict' | ||
const config = leoEvent.leo instanceof Object ? leoEvent.leo : false | ||
const prefix = config && config.prefix ? `${config.prefix}-` : '' | ||
const prefix = config && config.prefix ? `${config.prefix}` : undefined | ||
const botPrefix = prefix ? `${prefix}-` : '' | ||
const sourceQueue = config ? config.queue : leoEvent.leo | ||
@@ -63,3 +64,3 @@ const botNumbers = times((config && config.botCount) || 1, Number) | ||
const botSuffix = botNumber > 0 ? '-' + botNumber : '' | ||
let botId = `${this.serverless.service.service}-${stage}-${prefix}${ymlFunctionName}${botSuffix}` | ||
let botId = `${this.serverless.service.service}-${stage}-${botPrefix}${ymlFunctionName}${botSuffix}` | ||
const installProperty = { | ||
@@ -80,3 +81,3 @@ id: botId, | ||
if (sourceQueue) { | ||
botId = `${this.serverless.service.service}-${stage}-${prefix}${sourceQueue}-${ymlFunctionName}${botSuffix}` | ||
botId = `${this.serverless.service.service}-${stage}-${botPrefix}${sourceQueue}-${ymlFunctionName}${botSuffix}` | ||
installProperty.id = botId | ||
@@ -83,0 +84,0 @@ installProperty.settings.source = sourceQueue |
{ | ||
"name": "serverless-leo", | ||
"version": "1.3.10", | ||
"version": "1.3.11", | ||
"description": "Serverless plugin for leo microservices", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
41022
883