From ec323cf360e6dd5b3a5849c3121cdb5503b412bd Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sat, 28 Mar 2020 14:28:37 +0100 Subject: [PATCH] Remove a TODO --- src/controllers/LikesController.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/controllers/LikesController.ts b/src/controllers/LikesController.ts index 12e131f..eba2aee 100644 --- a/src/controllers/LikesController.ts +++ b/src/controllers/LikesController.ts @@ -3,6 +3,7 @@ import { LikesType, LikesHelper } from "../helpers/LikesHelper"; import { UserHelper } from "../helpers/UserHelper"; import { GroupsAccessLevel } from "../entities/Group"; import { UserLike } from "../entities/UserLike"; +import { NotificationsHelper } from "../helpers/NotificationsHelper"; /** * Likes controller @@ -41,7 +42,8 @@ export class LikesController { id = await h.postPostIDWithAccess("id"); type = LikesType.POST; - // TODO : delete any notification targetting this user about the post + // Delete any notification targetting this user about the post + await NotificationsHelper.DeleteAllPostsNotificationsTargetingUser(h.getUserId(), id); break;