mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-15 04:39:58 +00:00
security/api-keys: add support for unlimited
limit
This commit is contained in:
parent
9cc6fd13fa
commit
cfd54e91d5
1 changed files with 4 additions and 0 deletions
|
@ -89,6 +89,10 @@ const formatKeys = (keyData) => {
|
|||
formatted[key] = {};
|
||||
|
||||
if (data.limit) {
|
||||
if (data.limit === "unlimited") {
|
||||
data.limit = Infinity;
|
||||
}
|
||||
|
||||
formatted[key].limit = data.limit;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue