mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 14:30:44 +00:00
bugfix: change SingleplayerMapAchievementSchema.mapName schema to be a string
A player got an achievement on the beta deployment for a map that doesn't exist in prod. Now they can't log in on prod because the map doesn't exist.
This commit is contained in:
@@ -49,7 +49,7 @@ export const DiscordUserSchema = z.object({
|
||||
export type DiscordUser = z.infer<typeof DiscordUserSchema>;
|
||||
|
||||
const SingleplayerMapAchievementSchema = z.object({
|
||||
mapName: z.enum(GameMapType),
|
||||
mapName: z.string(),
|
||||
difficulty: z.enum(Difficulty),
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user