1
0
Fork 0
mirror of synced 2024-07-03 21:40:55 +12:00

Making sure any errors that occur in usage quota are thrown up to stop endpoint from functioning.

This commit is contained in:
mike12345567 2020-10-09 17:28:49 +01:00
parent ac9be28064
commit 86102982a1

View file

@ -94,7 +94,7 @@ exports.update = async (apiKey, property, usage) => {
await apiKeyTable.put({ item: keyObj }) await apiKeyTable.put({ item: keyObj })
return return
} }
throw "Resource limits have been reached"
} }
throw "Resource limits have been reached"
} }
} }