Skip to content

Commit

Permalink
fix type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
CarinaWolli committed Sep 24, 2024
1 parent 2a89dc3 commit 0ecc59a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ const combineTwoSeatedBookings = async (

evt.attendees = updatedBookingAttendees;

evt = addVideoCallDataToEvent(updatedNewBooking.references, evt);
evt = { ...addVideoCallDataToEvent(updatedNewBooking.references, evt), bookerUrl: evt.bookerUrl };

const copyEvent = cloneDeep(evt);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const moveSeatedBookingToNewTimeSlot = async (
},
});

evt = addVideoCallDataToEvent(newBooking.references, evt);
evt = { ...addVideoCallDataToEvent(newBooking.references, evt), bookerUrl: evt.bookerUrl };

const copyEvent = cloneDeep(evt);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,16 @@ const ownerRescheduleSeatedBooking = async (
) => {
const { originalRescheduledBooking, tAttendees } = rescheduleSeatedBookingObject;
const { evt } = rescheduleSeatedBookingObject;
evt.attendees = originalRescheduledBooking?.attendees.map((attendee) => {
return {
name: attendee.name,
email: attendee.email,
timeZone: attendee.timeZone,
language: { translate: tAttendees, locale: attendee.locale ?? "en" },
};
});

evt.attendees =
originalRescheduledBooking?.attendees.map((attendee) => {
return {
name: attendee.name,
email: attendee.email,
timeZone: attendee.timeZone,
language: { translate: tAttendees, locale: attendee.locale ?? "en" },
};
}) ?? [];

// If there is no booking during the new time slot then update the current booking to the new date
if (!newTimeSlotBooking) {
Expand Down

0 comments on commit 0ecc59a

Please sign in to comment.