Scheduling infrastructure for absolutely everyone.
fix: hide userresponses (#25370)
Anik Dhabal Babu7d2a06ddb610
diff --git a/packages/features/bookings/lib/service/RegularBookingService.ts b/packages/features/bookings/lib/service/RegularBookingService.tsindex 8ec6de70648..f1700b6ca61 100644--- a/packages/features/bookings/lib/service/RegularBookingService.ts+++ b/packages/features/bookings/lib/service/RegularBookingService.ts@@ -1574,7 +1574,7 @@ async function handler(rescheduleUid,reqBookingUid: reqBody.bookingUid,eventType,- evt: { ...evt, bookerUrl },+ evt: { ...evt, seatsPerTimeSlot: eventType.seatsPerTimeSlot, bookerUrl },invitee,allCredentials,organizerUser,diff --git a/packages/features/calendars/lib/CalendarManager.ts b/packages/features/calendars/lib/CalendarManager.tsindex 45e43c98a54..9ee0968a04b 100644--- a/packages/features/calendars/lib/CalendarManager.ts+++ b/packages/features/calendars/lib/CalendarManager.ts@@ -500,6 +500,12 @@ export const deleteEvent = async ({* Process the calendar event by generating description and removing attendees if needed*/const processEvent = (calEvent: CalendarEvent): CalendarServiceEvent => {+ if (calEvent.seatsPerTimeSlot){+ calEvent.responses = null;+ calEvent.userFieldsResponses = null;+ calEvent.additionalNotes = null;+ calEvent.customInputs = null;+ }// Generate the calendar event descriptionconst calendarEvent: CalendarServiceEvent = {...calEvent,@@ -517,10 +523,5 @@ const processEvent = (calEvent: CalendarEvent): CalendarServiceEvent => {calendarEvent.attendees = [];}- if (calEvent.seatsPerTimeSlot){- calendarEvent.responses = null;- calendarEvent.userFieldsResponses = null;- }-return calendarEvent;};