From d50097665bb5ea4912e45d6fd79a3ab7b83d21a8 Mon Sep 17 00:00:00 2001 From: evanpelle Date: Fri, 23 May 2025 10:11:53 -0700 Subject: [PATCH] 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 --- src/core/Schemas.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/Schemas.ts b/src/core/Schemas.ts index 3882f74a1..caf7c091e 100644 --- a/src/core/Schemas.ts +++ b/src/core/Schemas.ts @@ -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);