From 8524afed6552f1c422f77b5d5ac3b7e8df7f3e96 Mon Sep 17 00:00:00 2001 From: evanpelle Date: Tue, 3 Mar 2026 13:34:45 -0800 Subject: [PATCH] Bugfix: Update PlayerGameSchema.map from GameMapType enum to string Same issue as the users/@me response: a user played a map that doesn't exist on production --- src/core/ApiSchemas.ts | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/core/ApiSchemas.ts b/src/core/ApiSchemas.ts index fbecd5e09..32153359f 100644 --- a/src/core/ApiSchemas.ts +++ b/src/core/ApiSchemas.ts @@ -1,13 +1,7 @@ import { z } from "zod"; import { base64urlToUuid } from "./Base64"; import { BigIntStringSchema, PlayerStatsSchema } from "./StatsSchemas"; -import { - Difficulty, - GameMapType, - GameMode, - GameType, - RankedType, -} from "./game/Game"; +import { Difficulty, GameMode, GameType, RankedType } from "./game/Game"; export const RefreshResponseSchema = z.object({ token: z.string(), @@ -105,7 +99,7 @@ export const PlayerGameSchema = z.object({ start: z.iso.datetime(), mode: z.enum(GameMode), type: z.enum(GameType), - map: z.enum(GameMapType), + map: z.string(), difficulty: z.enum(Difficulty), clientId: z.string().optional(), });