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:
1 file changed
+3
@@ -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