fix: allows patching booking and period limits from API (#10935)

This commit is contained in:
Omar López authored and GitHub committed 2023-08-25 14:29:04 +01:00
1 parent 7ddbcfcdcf
commit 6ce4122528
5 files changed
+29 -5

No files matched your search

+2
View File
@@ -79,7 +79,9 @@ model EventType {
bookingFields Json?
timeZone String?
periodType PeriodType @default(UNLIMITED)
/// @zod.custom(imports.coerceToDate)
periodStartDate DateTime?
/// @zod.custom(imports.coerceToDate)
periodEndDate DateTime?
periodDays Int?
periodCountCalendarDays Boolean?
+2
View File
@@ -608,3 +608,5 @@ export const ZVerifyCodeInputSchema = z.object({
});
export type ZVerifyCodeInputSchema = z.infer<typeof ZVerifyCodeInputSchema>;
export const coerceToDate = z.coerce.date();