From 7173216223ed64eb223b58987efb91e8eefd8b92 Mon Sep 17 00:00:00 2001 From: "Kalle (Sendou)" <38327916+Sendouc@users.noreply.github.com> Date: Sat, 6 Feb 2021 23:29:46 +0200 Subject: [PATCH] arrayify teaminfoschema players --- lib/validators/detailedMap.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/validators/detailedMap.ts b/lib/validators/detailedMap.ts index 2808df47a..1c6d1eb8d 100644 --- a/lib/validators/detailedMap.ts +++ b/lib/validators/detailedMap.ts @@ -18,7 +18,7 @@ const playerSchema = z.object({ const teamInfoSchema = z.object({ score: z.number().int().min(0).max(100), - players: playerSchema, + players: z.array(playerSchema), }); export const detailedMapSchema = z.array(