Merge pull request #2882 from Budibase/honour-quota
Deny only when usage quota is exceeded
This commit is contained in:
commit
380e3b4ccf
|
@ -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…
Reference in New Issue