fix: normalize missing legacy match game mode
This commit is contained in:
1 parent
683d602d63
commit
ee96f8d48b
3 files changed
+66
No files matched your search
@@ -759,6 +759,10 @@ async function hydrateLegacyMatch(
|
||||
|
||||
return {
|
||||
...match,
|
||||
// Native collection reads bypass the MatchSchema default. Historical
|
||||
// documents without a persisted gameMode still executed as pair mode via
|
||||
// the runtime fallback.
|
||||
gameMode: match.gameMode ?? 'pair',
|
||||
...(hydratedResult ? { result: hydratedResult } : {}),
|
||||
tournamentCodes,
|
||||
riotMatchArchiveIds: [...archivedIds].sort(),
|
||||
|
||||
Reference in new issue
Block a user