From f20cc45bc3a65e615f041245147e6f19d951a989 Mon Sep 17 00:00:00 2001 From: Rory Powell Date: Mon, 4 Oct 2021 14:07:10 +0100 Subject: [PATCH] Deny only when usage quota is exceeded --- packages/server/src/utilities/usageQuota.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/src/utilities/usageQuota.js b/packages/server/src/utilities/usageQuota.js index 80fddb8303..1980b13ef0 100644 --- a/packages/server/src/utilities/usageQuota.js +++ b/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}.` )