mirror of
https://github.com/imputnet/cobalt.git
synced 2025-07-14 09:18:26 +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 handleRateExceeded = (_, res) => {
|
||||||
const { status, body } = createResponse("error", {
|
const { status, body } = createResponse("rate-limit", {
|
||||||
code: "error.api.rate_exceeded",
|
code: "error.api.rate_exceeded",
|
||||||
context: {
|
context: {
|
||||||
limit: env.rateLimitWindow
|
limit: env.rateLimitWindow
|
||||||
|
Loading…
Reference in New Issue
Block a user