added log for appointment-cancelling

This commit is contained in:
PxlLoewe
2025-03-01 00:34:06 +01:00
parent daf3238bee
commit 4824ade795

View File

@@ -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();