add notificationId to every broadcast notification

This commit is contained in:
2026-03-19 18:22:44 +01:00
parent 8494162919
commit 2222217045
@@ -29,7 +29,7 @@ export const userNotificationsListener = (echo, userData, setNotifications, setU
handleNotification(event.notificationId,`Vous avez été désassigné de la tâche ${event.task.name} de l'événement ${event.event.name}.`);
})
.listen('.volunteer.role.updated', (event) => {
handleNotification(`Votre rôle a changé pour : ${event.role} `);
handleNotification(event.notificationId, `Votre rôle a changé pour : ${event.role} `);
})
.listen('.task.date.updated', (event) => {
handleNotification(event.notificationId,`La date de la tâche ${event.task.name} de l'événement ${event.event.name} à été mis à jour. Cette tâche aura maintenant lieu du ${event.start} au ${event.end}.`);