fix: or z nul

pull/9078/head
Agusti Fernandez Pardo 2022-05-27 22:04:08 +02:00
parent b9a2e0f4c6
commit 2cd548bdb2
1 changed files with 2 additions and 1 deletions

View File

@ -103,7 +103,8 @@ export const schemaEventTypeReadPublic = EventType.pick({
tzid: timeZone.optional(),
})
.optional()
.nullable(),
.nullable()
.or(z.null()),
locations: z
.array(
z.object({