create broadcast notification when a futur or ongoing date of a task is updated

This commit is contained in:
2026-03-19 17:44:39 +01:00
parent 4d4df673d0
commit 54a83ad1b6
@@ -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}.`
});
};