only refresh the ranked channel on match completion in an attempt to avoid getting rated limited

This commit is contained in:
2025-05-15 16:58:17 +02:00
parent 98e0cb0964
commit 2473b1f605

View File

@@ -99,7 +99,7 @@ export async function POST(req: NextRequest) {
console.log({ playerIds }) console.log({ playerIds })
await syncHistory() await syncHistory()
await Promise.allSettled( await Promise.allSettled(
[RANKED_CHANNEL, VANILLA_CHANNEL].map((id) => [RANKED_CHANNEL].map((id) =>
leaderboardService.refreshLeaderboard(id) leaderboardService.refreshLeaderboard(id)
) )
) )