Skip to content

Commit 2d33523

Browse files
authored
fix(deploy): fix HTTP 409 errors when deploying triggers (#326)
1 parent 1ace7db commit 2d33523

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

deploy/scalewayDeploy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ class ScalewayDeploy {
7777
"deploy:deploy": () =>
7878
BbPromise.bind(this)
7979
.then(this.createServerlessNamespace)
80+
.then(this.updateServerlessNamespace)
8081
.then(chainContainers)
8182
.then(chainFunctions)
82-
.then(this.updateServerlessNamespace)
8383
.then(this.deployTriggers),
8484
};
8585
}

shared/setUpDeployment.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ module.exports = {
33
const { service } = this.provider.serverless;
44
const { provider } = service;
55
this.namespaceName = service.service;
6-
this.namespaceVariables = provider.env || {};
7-
this.namespaceSecretVariables = provider.secret || {};
6+
this.namespaceVariables = provider.env;
7+
this.namespaceSecretVariables = provider.secret;
88
this.runtime = provider.runtime;
99

1010
const defaultTokenExpirationDate = new Date();

0 commit comments

Comments
 (0)