fix: metadata get lost when rescheduling (#7873)
parent
79f7a16f62
commit
e4eb21bf8d
|
@ -1485,6 +1485,9 @@ async function handler(
|
||||||
newBookingData.recurringEventId = reqBody.recurringEventId;
|
newBookingData.recurringEventId = reqBody.recurringEventId;
|
||||||
}
|
}
|
||||||
if (originalRescheduledBooking) {
|
if (originalRescheduledBooking) {
|
||||||
|
newBookingData.metadata = {
|
||||||
|
...(typeof originalRescheduledBooking.metadata === "object" && originalRescheduledBooking.metadata),
|
||||||
|
};
|
||||||
newBookingData["paid"] = originalRescheduledBooking.paid;
|
newBookingData["paid"] = originalRescheduledBooking.paid;
|
||||||
newBookingData["fromReschedule"] = originalRescheduledBooking.uid;
|
newBookingData["fromReschedule"] = originalRescheduledBooking.uid;
|
||||||
if (newBookingData.attendees?.createMany?.data) {
|
if (newBookingData.attendees?.createMany?.data) {
|
||||||
|
|
Loading…
Reference in New Issue