mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
EndpointDeploy: fix nameTemplate bug
This commit is contained in:
parent
98e7cab81f
commit
cbe4cde9c5
@ -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
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user