Browse Source

Deny only when usage quota is exceeded

pull/2882/head
Rory Powell 5 years ago
parent
commit
f20cc45bc3
  1. 2
      packages/server/src/utilities/usageQuota.js

2
packages/server/src/utilities/usageQuota.js

@ -58,7 +58,7 @@ exports.update = async (property, usage) => {
// increment the quota
quota.usageQuota[property] += usage
if (quota.usageQuota[property] >= quota.usageLimits[property]) {
if (quota.usageQuota[property] > quota.usageLimits[property]) {
throw new Error(
`You have exceeded your usage quota of ${quota.usageLimits[property]} ${property}.`
)

Loading…
Cancel
Save