mirror of
https://github.com/imputnet/cobalt.git
synced 2025-01-15 11:25:17 +00:00
security/api-keys: add support for unlimited
limit
This commit is contained in:
parent
9cc6fd13fa
commit
cfd54e91d5
|
@ -89,6 +89,10 @@ const formatKeys = (keyData) => {
|
||||||
formatted[key] = {};
|
formatted[key] = {};
|
||||||
|
|
||||||
if (data.limit) {
|
if (data.limit) {
|
||||||
|
if (data.limit === "unlimited") {
|
||||||
|
data.limit = Infinity;
|
||||||
|
}
|
||||||
|
|
||||||
formatted[key].limit = data.limit;
|
formatted[key].limit = data.limit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue