From c194e0b038cb1fe6d27a7a3ace76286d38c7445b Mon Sep 17 00:00:00 2001 From: Mara-Li Date: Mon, 4 Mar 2024 16:37:26 +0100 Subject: [PATCH] fix(API): another attempt to fix disabled rate limit See #321 --- src/utils/data_validation_test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/data_validation_test.ts b/src/utils/data_validation_test.ts index f1befd53..ae1c8cda 100644 --- a/src/utils/data_validation_test.ts +++ b/src/utils/data_validation_test.ts @@ -453,7 +453,7 @@ export async function verifyRateLimitAPI( //if the error is 404 and user use enterprise, it's normal if ((error as any).status === 404 && settings.github.api.tiersForApi === GithubTiersVersion.entreprise - && (error as any).response.data === "Rate limiting is not enabled." + && (error as any).response.message.data === "Rate limiting is not enabled." && (error as any).name === "HttpError") return 5000; notif({ settings, e: true }, error); return 0;