From 8c09848ee992cc4d84c21c9be4fd9d961e4b0114 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sat, 21 Mar 2020 08:59:32 +0100 Subject: [PATCH] Can delete posts --- src/helpers/PostsHelper.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/helpers/PostsHelper.ts b/src/helpers/PostsHelper.ts index 26b7c0f..94f6b23 100644 --- a/src/helpers/PostsHelper.ts +++ b/src/helpers/PostsHelper.ts @@ -507,6 +507,11 @@ export class PostsHelper { if(await SurveyHelper.Exists(postID)) await SurveyHelper.Delete(postID); } + + // Delete the post + await DatabaseHelper.DeleteRows(TABLE_NAME, { + ID: postID + }); } /**