diff --git a/src/utils/echo/listeners/userNotificationsListener.js b/src/utils/echo/listeners/userNotificationsListener.js index 253378d..917a3e2 100644 --- a/src/utils/echo/listeners/userNotificationsListener.js +++ b/src/utils/echo/listeners/userNotificationsListener.js @@ -30,5 +30,9 @@ export const userNotificationsListener = (echo, userData, setNotifications, setU }) .listen('.volunteer.role.updated', (event) => { handleNotification(`Votre rôle a changé pour : ${event.role} !`); + }) + .listen('.task.date.updated', (event) => { + handleNotification(`Votre rôle a changé pour : ${event.role} !`); + `La date de la tâche ${event.task.name} de l'événement ${event.task.event.name} à été mis à jour. Cette tâche aura maintenant lieu du ${event.start} au ${event.end}.` }); }; \ No newline at end of file