fix/match_collector: fix platform routing for match api
All checks were successful
pipeline / lint-and-format (push) Successful in 5m24s
pipeline / build-and-push-images (push) Successful in 1m0s

This commit is contained in:
2026-04-17 16:47:26 +02:00
parent dae65c8fa2
commit 2c774caf5f

View File

@@ -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