From bbddcb26ad31c47adf475bd72930d8ca1a6f6ac2 Mon Sep 17 00:00:00 2001 From: Anthony Debucquoy Date: Mon, 22 Apr 2024 00:03:45 +0200 Subject: [PATCH] fixup! Merge pull request 'Notifications on Schedule' (#172) from NotificationSchedule into master --- .../java/ovh/herisson/Clyde/Services/Msg/ForumService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/src/main/java/ovh/herisson/Clyde/Services/Msg/ForumService.java b/backend/src/main/java/ovh/herisson/Clyde/Services/Msg/ForumService.java index 259f5b1..a747d45 100644 --- a/backend/src/main/java/ovh/herisson/Clyde/Services/Msg/ForumService.java +++ b/backend/src/main/java/ovh/herisson/Clyde/Services/Msg/ForumService.java @@ -8,6 +8,7 @@ import ovh.herisson.Clyde.Repositories.Msg.ForumRepository; import ovh.herisson.Clyde.Repositories.Msg.TopicRepository; import ovh.herisson.Clyde.Services.UserService; import ovh.herisson.Clyde.Tables.Course; +import ovh.herisson.Clyde.Tables.Notification; import ovh.herisson.Clyde.Tables.User; import ovh.herisson.Clyde.Tables.Msg.Answer; import ovh.herisson.Clyde.Tables.Msg.Forum; @@ -25,7 +26,7 @@ public class ForumService { public void createForum(Course c, Forum f){ c.addForum(f); for (User u: f.getRegister()) { - userServ.Notify(u, new Notification("forum.notification.forum.new", data.getSubject(), "/#/Forum")); + userServ.Notify(u, new Notification("forum.notification.forum.new", f.getName(), "/#/Forum")); } courseRepo.save(c); }