fix: booking fields not saving properly for team events (#19702)
This commit is contained in:
1 parent
f9780fbbd2
commit
75627cb097
1 file changed
+2
-1
@@ -93,9 +93,10 @@ export class EventTypesAtomService {
|
||||
) {
|
||||
await this.checkCanUpdateTeamEventType(user.id, eventTypeId, teamId, body.scheduleId);
|
||||
const eventTypeUser = await this.eventTypeService.getUserToUpdateEvent(user);
|
||||
const bookingFields = [...(body.bookingFields || [])];
|
||||
const bookingFields = body.bookingFields ? [...body.bookingFields] : undefined;
|
||||
|
||||
if (
|
||||
bookingFields?.length &&
|
||||
!bookingFields.find((field) => field.type === "email") &&
|
||||
!bookingFields.find((field) => field.type === "phone")
|
||||
) {
|
||||
|
||||
Reference in new issue
Block a user