change from error to rate-limit in api.js

This commit is contained in:
lostdusty 2024-12-30 12:26:53 -03:00 committed by GitHub
parent 0f65165671
commit 927be20eae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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