mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
Remove unnecessary passing-in of stage name to naming function
This commit is contained in:
parent
6b130f4a70
commit
d2a930bc4d
@ -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]: {
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user