diff --git a/lib/validations/event-type.ts b/lib/validations/event-type.ts index 5836945abb..579793a446 100644 --- a/lib/validations/event-type.ts +++ b/lib/validations/event-type.ts @@ -1,6 +1,7 @@ import { z } from "zod"; -import { _EventTypeCustomInputModel, _EventTypeModel as EventType } from "@calcom/prisma/zod"; +import { _EventTypeModel as EventType } from "@calcom/prisma/zod"; +import { customInputSchema } from "@calcom/prisma/zod-utils"; import { Frequency } from "~/lib/types"; @@ -122,6 +123,6 @@ export const schemaEventTypeReadPublic = EventType.pick({ ) .nullable(), metadata: jsonSchema.nullable(), - customInputs: _EventTypeCustomInputModel.array().optional(), + customInputs: customInputSchema.array().optional(), }) );