fix: disable guest is not updating onchange (#20340)
This commit is contained in:
@@ -161,6 +161,7 @@ export const updateHandler = async ({ ctx, input }: UpdateOptions) => {
|
||||
}
|
||||
|
||||
const teamId = input.teamId || eventType.team?.id;
|
||||
const guestsField = bookingFields?.find((field) => field.name === "guests");
|
||||
|
||||
ensureUniqueBookingFields(bookingFields);
|
||||
ensureEmailOrPhoneNumberIsPresent(bookingFields);
|
||||
@@ -183,6 +184,7 @@ export const updateHandler = async ({ ctx, input }: UpdateOptions) => {
|
||||
rest.rrSegmentQueryValue === null ? Prisma.DbNull : (rest.rrSegmentQueryValue as Prisma.InputJsonValue),
|
||||
metadata: rest.metadata === null ? Prisma.DbNull : (rest.metadata as Prisma.InputJsonObject),
|
||||
eventTypeColor: eventTypeColor === null ? Prisma.DbNull : (eventTypeColor as Prisma.InputJsonObject),
|
||||
disableGuests: guestsField?.hidden ?? false,
|
||||
};
|
||||
data.locations = locations ?? undefined;
|
||||
if (periodType) {
|
||||
|
||||
Reference in New Issue
Block a user