1
0
Fork 0
mirror of synced 2024-10-03 19:43:32 +13:00

Making sure quota is always set correctly.

This commit is contained in:
mike12345567 2020-10-20 15:15:21 +01:00
parent 8f466c424d
commit cfb274f34b

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,