added log for appointment-cancelling
This commit is contained in:
@@ -137,6 +137,20 @@ const ModalBtn = ({
|
|||||||
eventId: event.id,
|
eventId: event.id,
|
||||||
userId: user.id,
|
userId: user.id,
|
||||||
appointmentCancelled: true,
|
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");
|
toast.success("Termin abgesagt");
|
||||||
router.refresh();
|
router.refresh();
|
||||||
|
|||||||
Reference in New Issue
Block a user