From 2cd548bdb202f61331049184f14d4da0590b7a71 Mon Sep 17 00:00:00 2001 From: Agusti Fernandez Pardo Date: Fri, 27 May 2022 22:04:08 +0200 Subject: [PATCH] fix: or z nul --- lib/validations/event-type.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/validations/event-type.ts b/lib/validations/event-type.ts index b67f13fa6a..4d4c2446fd 100644 --- a/lib/validations/event-type.ts +++ b/lib/validations/event-type.ts @@ -103,7 +103,8 @@ export const schemaEventTypeReadPublic = EventType.pick({ tzid: timeZone.optional(), }) .optional() - .nullable(), + .nullable() + .or(z.null()), locations: z .array( z.object({