Fixing back reference to recurring event when rescheduled (#3967)

* fix: pass recurring count value

* fix: show dates for pending booking

* Restoring recurringEventId on reschedule

* Reverting other changes from a different PR

Co-authored-by: Udit Takkar <[email protected]>
Co-authored-by: Peer Richelsen <[email protected]>
Co-authored-by: Alex van Andel <[email protected]>
This commit is contained in:
authored and GitHub committed 2022-08-25 15:18:03 +00:00
1 parent 7f94ce0605
commit 9c3cea512f
1 file changed
+3
+3
View File
@@ -621,6 +621,9 @@ async function handler(req: NextApiRequest) {
if (newBookingData.attendees?.createMany?.data) {
newBookingData.attendees.createMany.data = originalRescheduledBooking.attendees;
}
if (originalRescheduledBooking.recurringEventId) {
newBookingData.recurringEventId = originalRescheduledBooking.recurringEventId;
}
}
const createBookingObj = {
include: {