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,