Remove unnecessary passing-in of stage name to naming function

This commit is contained in:
Philipp Muens 2019-03-04 13:34:53 +01:00
parent 6b130f4a70
commit d2a930bc4d
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ module.exports = {
// NOTE: the DeploymentId is random, therefore we rely on prior usage here
const deploymentId = this.apiGatewayDeploymentLogicalId;
this.apiGatewayStageLogicalId = this.provider.naming
.getStageLogicalId(this.provider.getStage());
.getStageLogicalId();
_.merge(this.serverless.service.provider.compiledCloudFormationTemplate.Resources, {
[this.apiGatewayStageLogicalId]: {

View File

@ -30,7 +30,7 @@ describe('#compileStage()', () => {
awsCompileApigEvents.provider = provider;
stage = awsCompileApigEvents.provider.getStage();
stageLogicalId = awsCompileApigEvents.provider.naming
.getStageLogicalId(stage);
.getStageLogicalId();
// setting up AWS X-Ray tracing
awsCompileApigEvents.serverless.service.provider.tracing = {
apiGateway: true,