From 86102982a1e9b0d4c14fd9547e1d15acdb74cbde Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Fri, 9 Oct 2020 17:28:49 +0100 Subject: [PATCH] Making sure any errors that occur in usage quota are thrown up to stop endpoint from functioning. --- 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 fdf8ea813c..95fc76140f 100644 --- a/packages/server/src/utilities/usageQuota.js +++ b/packages/server/src/utilities/usageQuota.js @@ -94,7 +94,7 @@ exports.update = async (apiKey, property, usage) => { await apiKeyTable.put({ item: keyObj }) return } - throw "Resource limits have been reached" } + throw "Resource limits have been reached" } }