Making sure any errors that occur in usage quota are thrown up to stop endpoint from functioning.
This commit is contained in:
parent
2811c78d82
commit
89d02357b8
|
@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue