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:
evanpelle
2025-05-23 10:11:53 -07:00
parent ee3e1bd586
commit d50097665b
+1 -1
View File
@@ -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);