Scheduling infrastructure for absolutely everyone.
fix: event type empty title validation (#23220)
Vitor Monteiro6932498d48f4
diff --git a/packages/prisma/zod/custom/eventtype.ts b/packages/prisma/zod/custom/eventtype.tsindex 98a27787e6f..25bf7cda5f6 100755--- a/packages/prisma/zod/custom/eventtype.ts+++ b/packages/prisma/zod/custom/eventtype.ts@@ -19,7 +19,7 @@ const calVideoSettingsSchema = z.nullable();export const createEventTypeInput = z.object({- title: z.string().min(1),+ title: z.string().trim().min(1),slug: imports.eventTypeSlug,description: z.string().nullish(),length: z.number().int().min(MIN_EVENT_DURATION_MINUTES).max(MAX_EVENT_DURATION_MINUTES),@@ -45,7 +45,7 @@ export const createEventTypeInput = z.object({export const EventTypeDuplicateInput = z.object({id: z.number(),slug: z.string(),- title: z.string().min(1),+ title: z.string().trim().min(1),description: z.string(),length: z.number().int().min(MIN_EVENT_DURATION_MINUTES).max(MAX_EVENT_DURATION_MINUTES),teamId: z.number().nullish(),