diff --git a/pages/api/availability/eventtype.ts b/pages/api/availability/eventtype.ts index 9fd454f0fc..c8050d1887 100644 --- a/pages/api/availability/eventtype.ts +++ b/pages/api/availability/eventtype.ts @@ -132,7 +132,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse) if (req.body.users) { data.users = { set: [], - connect: req.body.users.map((id: number) => ({ id })), + connect: req.body.users.map((id: string) => ({ id: parseInt(id) })), }; } diff --git a/pages/event-types/[type].tsx b/pages/event-types/[type].tsx index aea6f0ad9c..759044cb0b 100644 --- a/pages/event-types/[type].tsx +++ b/pages/event-types/[type].tsx @@ -165,7 +165,6 @@ const EventTypePage = (props: inferSSRProps) => { advancedPayload.availability = enteredAvailability || undefined; advancedPayload.customInputs = customInputs; advancedPayload.timeZone = selectedTimeZone; - advancedPayload.hidden = hidden; advancedPayload.disableGuests = formData.disableGuests === "on"; advancedPayload.requiresConfirmation = formData.requiresConfirmation === "on"; } @@ -176,6 +175,7 @@ const EventTypePage = (props: inferSSRProps) => { slug: asStringOrThrow(formData.slug), description: asStringOrThrow(formData.description), length: asNumberOrThrow(formData.length), + hidden, locations, ...advancedPayload, ...(team