From 2c774caf5f1dd70bfa9404f1077d717dd93c8b27 Mon Sep 17 00:00:00 2001 From: Valentin Haudiquet Date: Fri, 17 Apr 2026 16:47:26 +0200 Subject: [PATCH] fix/match_collector: fix platform routing for match api --- match_collector/index.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/match_collector/index.ts b/match_collector/index.ts index 3ca90b2..0bb97a8 100644 --- a/match_collector/index.ts +++ b/match_collector/index.ts @@ -72,8 +72,10 @@ async function main() { i = 0 for (const game of gameList) { console.log('Entry ' + i + '/' + gameList.length + ' ...') - // Determine region from matchId (format: REGION_matchId) - const matchRegion = game.split('_')[0] + // Determine region from matchId (format: PLATFORM_matchId) + // Map platform prefix to regional routing value for match API + const matchPlatformPrefix = game.split('_')[0] + const matchRegion = PLATFORMS[matchPlatformPrefix] || region const gameMatch = await match(game, matchRegion) const gameTimeline = await matchTimeline(game, matchRegion) gameMatch.timeline = gameTimeline