From 2473b1f605daa023b76692dfbacb2e4e4373a199 Mon Sep 17 00:00:00 2001 From: Andres Date: Thu, 15 May 2025 16:58:17 +0200 Subject: [PATCH] only refresh the ranked channel on match completion in an attempt to avoid getting rated limited --- src/app/api/neatqueue-webhook/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/api/neatqueue-webhook/route.ts b/src/app/api/neatqueue-webhook/route.ts index 0ae80f8..0fd423d 100644 --- a/src/app/api/neatqueue-webhook/route.ts +++ b/src/app/api/neatqueue-webhook/route.ts @@ -99,7 +99,7 @@ export async function POST(req: NextRequest) { console.log({ playerIds }) await syncHistory() await Promise.allSettled( - [RANKED_CHANNEL, VANILLA_CHANNEL].map((id) => + [RANKED_CHANNEL].map((id) => leaderboardService.refreshLeaderboard(id) ) )