From 2660cafd723b88d668264bc0f908452c443395c3 Mon Sep 17 00:00:00 2001 From: lostdusty <47502554+lostdusty@users.noreply.github.com> Date: Mon, 30 Dec 2024 12:46:24 -0300 Subject: [PATCH] update logic Co-authored-by: jj --- api/src/processing/request.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/api/src/processing/request.js b/api/src/processing/request.js index 12cee3d8..da48bc48 100644 --- a/api/src/processing/request.js +++ b/api/src/processing/request.js @@ -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; }