From 6932498d48f44a5500e68ba99920af6e44123c86 Mon Sep 17 00:00:00 2001 From: Vitor Monteiro <76404081+vitormrmonteiro@users.noreply.github.com> Date: Thu, 28 Aug 2025 20:22:59 +0100 Subject: [PATCH] fix: event type empty title validation (#23220) --- packages/prisma/zod/custom/eventtype.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/prisma/zod/custom/eventtype.ts b/packages/prisma/zod/custom/eventtype.ts index 98a27787e6..25bf7cda5f 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(),