From cbe4cde9c50c1de87bf9eaeeeff84c1f9536ba2a Mon Sep 17 00:00:00 2001 From: Austen Collins Date: Sun, 7 Feb 2016 17:49:59 -0800 Subject: [PATCH] EndpointDeploy: fix nameTemplate bug --- lib/actions/EndpointBuildApiGateway.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/actions/EndpointBuildApiGateway.js b/lib/actions/EndpointBuildApiGateway.js index 580a510e7..9066017c7 100644 --- a/lib/actions/EndpointBuildApiGateway.js +++ b/lib/actions/EndpointBuildApiGateway.js @@ -161,7 +161,7 @@ module.exports = function(SPlugin, serverlessPath) { if (!_this.endpoint) BbPromise.reject(new SError(`Endpoint could not be found: ${_this.evt.options.path}`)); // Set function name - _this.functionName = _this.function.getDeployedName({ + _this.functionName = _this.endpoint.getFunction().getDeployedName({ stage: _this.evt.options.stage, region: _this.evt.options.region });