Skip to content

Scheduling infrastructure for absolutely everyone.

fix: locations or z null

Agusti Fernandez Pardo957d6d2375c0
diff --git a/lib/validations/event-type.ts b/lib/validations/event-type.ts
index f436757ef27..53947aad5b7 100644
--- a/lib/validations/event-type.ts
+++ b/lib/validations/event-type.ts
@@ -38,8 +38,8 @@ const schemaEventTypeCreateParams = z
slug: z.string(),
description: z.string().optional().nullable(),
length: z.number().int(),
- locations: jsonSchema.optional().nullable().or(z.null()),
- metadata: z.any().optional().nullable().nullish(),
+ // locations: jsonSchema.optional().nullable().or(z.null()),
+ // metadata: z.any().optional().nullable().nullish(),
recurringEvent: jsonSchema.optional().nullable().or(z.null()),
})
.strict();
@@ -85,4 +85,4 @@ export const schemaEventTypeReadPublic = EventType.pick({
slotInterval: true,
successRedirectUrl: true,
description: true,
-}).merge(z.object({ metadata: z.any(), locations: z.any() }));
+}).merge(z.object({ metadata: z.any(), locations: jsonSchema.or(z.null()) }));