From cfb274f34bfaabec0b1ef4c063945e15f3ac8e9c Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Tue, 20 Oct 2020 15:15:21 +0100 Subject: [PATCH] Making sure quota is always set correctly. --- packages/server/src/api/controllers/deploy/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/server/src/api/controllers/deploy/index.js b/packages/server/src/api/controllers/deploy/index.js index d80eb779ad..b666744372 100644 --- a/packages/server/src/api/controllers/deploy/index.js +++ b/packages/server/src/api/controllers/deploy/index.js @@ -46,7 +46,11 @@ async function checkAllDeployments(deployments, user) { ) } catch (err) { // system may have restarted, need to re-verify - if (err != null && err.code === "InvalidClientTokenId") { + if ( + err != null && + err.code === "InvalidClientTokenId" && + deployment.quota + ) { await verifyDeployment({ ...user, quota: deployment.quota,