From 366b935a646cb3a4e85fc6aa23283d7b108243b0 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Thu, 9 Jul 2020 11:08:10 +0200 Subject: [PATCH] Add missing awaits --- src/helpers/SurveyHelper.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/helpers/SurveyHelper.ts b/src/helpers/SurveyHelper.ts index 8fcb998..56f376f 100644 --- a/src/helpers/SurveyHelper.ts +++ b/src/helpers/SurveyHelper.ts @@ -175,15 +175,15 @@ export class SurveyHelper { public static async Delete(postID: number) { const surveyID = await this.GetID(postID); - DatabaseHelper.DeleteRows(SURVEY_RESPONSE_TABLE, { + await DatabaseHelper.DeleteRows(SURVEY_RESPONSE_TABLE, { ID_sondage: surveyID }); - DatabaseHelper.DeleteRows(SURVEY_CHOICES_TABLE, { + await DatabaseHelper.DeleteRows(SURVEY_CHOICES_TABLE, { ID_sondage: surveyID }); - DatabaseHelper.DeleteRows(SURVEY_INFO_TABLE, { + await DatabaseHelper.DeleteRows(SURVEY_INFO_TABLE, { ID: surveyID }); }