mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 23:01:54 +00:00
bugfix: allow null in the sent nukes stats. This was causing zod schema validation. This is a temporary fix as stats are redone in v23
This commit is contained in:
+1
-1
@@ -151,7 +151,7 @@ const NukesEnum = z.enum([
|
||||
const NukeStatsSchema = z.record(NukesEnum, z.number());
|
||||
|
||||
export const PlayerStatsSchema = z.object({
|
||||
sentNukes: z.record(ID, NukeStatsSchema),
|
||||
sentNukes: z.record(ID.or(z.literal("null")), NukeStatsSchema),
|
||||
});
|
||||
|
||||
export const AllPlayersStatsSchema = z.record(ID, PlayerStatsSchema);
|
||||
|
||||
Reference in New Issue
Block a user