Update iCalSequence on normal booking
parent
4813b34feb
commit
83cb60b0cc
|
@ -110,6 +110,8 @@ async function getBookingToDelete(id: number | undefined, uid: string | undefine
|
||||||
scheduledJobs: true,
|
scheduledJobs: true,
|
||||||
seatsReferences: true,
|
seatsReferences: true,
|
||||||
responses: true,
|
responses: true,
|
||||||
|
iCalUID: true,
|
||||||
|
iCalSequence: true,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -261,6 +263,8 @@ async function handler(req: CustomRequest) {
|
||||||
...(teamMembers && { team: { name: "", members: teamMembers } }),
|
...(teamMembers && { team: { name: "", members: teamMembers } }),
|
||||||
seatsPerTimeSlot: bookingToDelete.eventType?.seatsPerTimeSlot,
|
seatsPerTimeSlot: bookingToDelete.eventType?.seatsPerTimeSlot,
|
||||||
seatsShowAttendees: bookingToDelete.eventType?.seatsShowAttendees,
|
seatsShowAttendees: bookingToDelete.eventType?.seatsShowAttendees,
|
||||||
|
iCalUID: bookingToDelete.iCalUID,
|
||||||
|
iCalSequence: bookingToDelete.iCalSequence + 1,
|
||||||
};
|
};
|
||||||
|
|
||||||
const dataForWebhooks = { evt, webhooks, eventTypeInfo };
|
const dataForWebhooks = { evt, webhooks, eventTypeInfo };
|
||||||
|
@ -387,6 +391,7 @@ async function handler(req: CustomRequest) {
|
||||||
data: {
|
data: {
|
||||||
status: BookingStatus.CANCELLED,
|
status: BookingStatus.CANCELLED,
|
||||||
cancellationReason: cancellationReason,
|
cancellationReason: cancellationReason,
|
||||||
|
iCalSequence: evt.iCalSequence,
|
||||||
},
|
},
|
||||||
select: {
|
select: {
|
||||||
startTime: true,
|
startTime: true,
|
||||||
|
|
Loading…
Reference in New Issue