1
0
mirror of https://gitlab.com/comunic/comunicapiv2 synced 2025-06-24 10:23:28 +00:00

Handles comments creation notification

This commit is contained in:
2020-03-28 14:25:58 +01:00
parent 0882ac76b3
commit ab645b67ff
2 changed files with 17 additions and 1 deletions

View File

@ -48,7 +48,8 @@ export class CommentsController {
// Create notifications
await NotificationsHelper.CreatePostNotification(h.getUserId(), postID, NotifEventType.COMMENT_CREATED);
// TODO : Delete any notifications targetting this user about the post
// Delete any notifications targetting this user about the post
await NotificationsHelper.DeleteAllPostsNotificationsTargetingUser(h.getUserId(), postID);
h.send({success: true, commentID: commentID});
}