Making sure quota is always set correctly.

This commit is contained in:
mike12345567 2020-10-20 15:15:21 +01:00
parent 3db22ec3cc
commit f1eb185798
1 changed files with 5 additions and 1 deletions

View File

@ -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,