fix: hide userresponses (#25370)

This commit is contained in:
Anik Dhabal Babu
2025-11-26 13:27:13 +00:00
committed by GitHub
parent d34ad2b0f6
commit 7d2a06ddb6
2 changed files with 7 additions and 6 deletions
@@ -1574,7 +1574,7 @@ async function handler(
rescheduleUid,
reqBookingUid: reqBody.bookingUid,
eventType,
evt: { ...evt, bookerUrl },
evt: { ...evt, seatsPerTimeSlot: eventType.seatsPerTimeSlot, bookerUrl },
invitee,
allCredentials,
organizerUser,
@@ -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 description
const 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;
};