From daed8eff2ef41a69ddf9486a4ef029921f83475e Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Fri, 27 Mar 2020 14:52:56 +0100 Subject: [PATCH] Delete all the likes on user page --- src/helpers/AccountHelper.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/helpers/AccountHelper.ts b/src/helpers/AccountHelper.ts index 89560a6..2ea487e 100644 --- a/src/helpers/AccountHelper.ts +++ b/src/helpers/AccountHelper.ts @@ -9,7 +9,7 @@ import { GeneralSettings, UserPageStatus, LangSettings, SecuritySettings } from import { AccountExport } from "../entities/AccountExport"; import { PostsHelper } from "./PostsHelper"; import { CommentsHelper } from "./CommentsHelper"; -import { LikesHelper } from "./LikesHelper"; +import { LikesHelper, LikesType } from "./LikesHelper"; import { SurveyHelper } from "./SurveyHelper"; import { MoviesHelper } from "./MoviesHelper"; import { ConversationsHelper } from "./ConversationsHelper"; @@ -476,6 +476,9 @@ export class AccountHelper { // Delete user account image await AccountImageHelper.Delete(userID); + + // Delete all the likes on the user page + await LikesHelper.DeleteAll(userID, LikesType.USER); */ // TODO : continue work