added log for appointment-cancelling
This commit is contained in:
@@ -137,6 +137,20 @@ const ModalBtn = ({
|
||||
eventId: event.id,
|
||||
userId: user.id,
|
||||
appointmentCancelled: true,
|
||||
statusLog: [
|
||||
...(participant?.statusLog.filter(
|
||||
(l) => l !== null,
|
||||
) || []),
|
||||
{
|
||||
data: {
|
||||
appointmentId: selectedAppointment.id,
|
||||
appointmentDate:
|
||||
selectedAppointment.appointmentDate,
|
||||
},
|
||||
event: "APPOINTMENT_CANCELLED",
|
||||
timestamp: new Date(),
|
||||
},
|
||||
],
|
||||
});
|
||||
toast.success("Termin abgesagt");
|
||||
router.refresh();
|
||||
|
||||
Reference in New Issue
Block a user