mirror of
https://github.com/imputnet/cobalt.git
synced 2025-01-28 09:18:27 +00:00
update logic
Co-authored-by: jj <log@riseup.net>
This commit is contained in:
parent
a1abf723f9
commit
2660cafd72
|
@ -23,9 +23,7 @@ export function createResponse(responseType, responseData) {
|
|||
|
||||
if (responseType === "error") {
|
||||
status = 400;
|
||||
}
|
||||
|
||||
if (responseType === "rate-limit") {
|
||||
} else if (responseType === "rate-limit") {
|
||||
status = 429;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue