From 2222217045d3432290231ba4c2b38ba3545ea56f Mon Sep 17 00:00:00 2001 From: Giovanni-Josserand Date: Thu, 19 Mar 2026 18:22:44 +0100 Subject: [PATCH] add notificationId to every broadcast notification --- src/utils/echo/listeners/userNotificationsListener.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/echo/listeners/userNotificationsListener.js b/src/utils/echo/listeners/userNotificationsListener.js index 91e73b8..f9ec96b 100644 --- a/src/utils/echo/listeners/userNotificationsListener.js +++ b/src/utils/echo/listeners/userNotificationsListener.js @@ -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}.`);