From 927be20eaeaceeed66ed28b741920cbcedaa6526 Mon Sep 17 00:00:00 2001 From: lostdusty <47502554+lostdusty@users.noreply.github.com> Date: Mon, 30 Dec 2024 12:26:53 -0300 Subject: [PATCH] change from error to rate-limit in api.js --- api/src/core/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/core/api.js b/api/src/core/api.js index 153f2ca6..7b45a017 100644 --- a/api/src/core/api.js +++ b/api/src/core/api.js @@ -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