fixup! Merge pull request 'Notifications on Schedule' (#172) from NotificationSchedule into master
This commit is contained in:
parent
71c2af7fcb
commit
bbddcb26ad
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user