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 <udit.07814802719@cse.mait.ac.in> Co-authored-by: Peer Richelsen <peeroke@gmail.com> Co-authored-by: Alex van Andel <me@alexvanandel.com>
This commit is contained in:
co-authored by
Udit Takkar
Peer Richelsen
Alex van Andel
parent
7f94ce0605
commit
9c3cea512f
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user