security/api-keys: add support for unlimited limit

This commit is contained in:
dumbmoron 2024-10-04 17:41:05 +00:00
parent 9cc6fd13fa
commit cfd54e91d5
No known key found for this signature in database

View file

@ -89,6 +89,10 @@ const formatKeys = (keyData) => {
formatted[key] = {};
if (data.limit) {
if (data.limit === "unlimited") {
data.limit = Infinity;
}
formatted[key].limit = data.limit;
}