Delete rescheduled booking (#7910)
* deleted orignal booking and fix open seats number on booking page * fix type error * Adjust tests * fix type error * include fix in e2e test * fix e2e test * fixes e2e test * fix type error in e2e test * increase timeout time --------- Co-authored-by: CarinaWolli <[email protected]> Co-authored-by: Joe Au-Yeung <[email protected]> Co-authored-by: Joe Au-Yeung <[email protected]>
This commit is contained in:
8 files changed
+43
-15
No files matched your search
@@ -1663,6 +1663,16 @@ async function handler(
|
||||
// Use EventManager to conditionally use all needed integrations.
|
||||
addVideoCallDataToEvt(originalRescheduledBooking.references);
|
||||
const updateManager = await eventManager.reschedule(evt, originalRescheduledBooking.uid);
|
||||
|
||||
//delete orignal rescheduled booking (no seats event)
|
||||
if (!eventType.seatsPerTimeSlot) {
|
||||
await prisma.booking.delete({
|
||||
where: {
|
||||
id: originalRescheduledBooking.id,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
// This gets overridden when updating the event - to check if notes have been hidden or not. We just reset this back
|
||||
// to the default description when we are sending the emails.
|
||||
evt.description = eventType.description;
|
||||
|
||||
Reference in new issue
Block a user