Hotfix: Make bookingFields optional (#258)

pull/9078/head
Hariom Balhara 2023-04-20 09:57:25 +05:30 committed by GitHub
parent 38987b77bb
commit 37a2209871
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -65,7 +65,7 @@ const schemaEventTypeCreateParams = z
recurringEvent: recurringEventInputSchema.optional(),
seatsPerTimeSlot: z.number().optional(),
seatsShowAttendees: z.boolean().optional(),
bookingFields: eventTypeBookingFields,
bookingFields: eventTypeBookingFields.optional(),
})
.strict();
@ -80,7 +80,7 @@ const schemaEventTypeEditParams = z
length: z.number().int().optional(),
seatsPerTimeSlot: z.number().optional(),
seatsShowAttendees: z.boolean().optional(),
bookingFields: eventTypeBookingFields,
bookingFields: eventTypeBookingFields.optional(),
})
.strict();
@ -134,5 +134,6 @@ export const schemaEventTypeReadPublic = EventType.pick({
metadata: jsonSchema.nullable(),
customInputs: customInputSchema.array().optional(),
link: z.string().optional(),
bookingFields: eventTypeBookingFields.optional().nullable(),
})
);