mirror of
https://github.com/imputnet/cobalt.git
synced 2025-01-28 17:28:27 +00:00
change from error to rate-limit in api.js
This commit is contained in:
parent
0f65165671
commit
927be20eae
|
@ -60,7 +60,7 @@ export const runAPI = async (express, app, __dirname, isPrimary = true) => {
|
|||
})
|
||||
|
||||
const handleRateExceeded = (_, res) => {
|
||||
const { status, body } = createResponse("error", {
|
||||
const { status, body } = createResponse("rate-limit", {
|
||||
code: "error.api.rate_exceeded",
|
||||
context: {
|
||||
limit: env.rateLimitWindow
|
||||
|
|
Loading…
Reference in a new issue