1
0
mirror of https://gitlab.com/comunic/comunicapiv2 synced 2025-06-19 16:15:16 +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

@ -370,6 +370,21 @@ export class NotificationsHelper {
}));
}
/**
* Delete all the notifications about a post targetting a specified
* user
*
* @param userID Target user ID
* @param postID Target post ID
*/
public static async DeleteAllPostsNotificationsTargetingUser(userID: number, postID: number) {
await this.Delete(new Notif({
destUserID: userID,
onElemType: NotifElemType.POST,
onElemID: postID
}));
}
/**
* Delete all the notification related with a post
*