mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2024-11-21 21:09:22 +00:00
Add missing awaits
This commit is contained in:
parent
07f6622aca
commit
366b935a64
@ -175,15 +175,15 @@ export class SurveyHelper {
|
|||||||
public static async Delete(postID: number) {
|
public static async Delete(postID: number) {
|
||||||
const surveyID = await this.GetID(postID);
|
const surveyID = await this.GetID(postID);
|
||||||
|
|
||||||
DatabaseHelper.DeleteRows(SURVEY_RESPONSE_TABLE, {
|
await DatabaseHelper.DeleteRows(SURVEY_RESPONSE_TABLE, {
|
||||||
ID_sondage: surveyID
|
ID_sondage: surveyID
|
||||||
});
|
});
|
||||||
|
|
||||||
DatabaseHelper.DeleteRows(SURVEY_CHOICES_TABLE, {
|
await DatabaseHelper.DeleteRows(SURVEY_CHOICES_TABLE, {
|
||||||
ID_sondage: surveyID
|
ID_sondage: surveyID
|
||||||
});
|
});
|
||||||
|
|
||||||
DatabaseHelper.DeleteRows(SURVEY_INFO_TABLE, {
|
await DatabaseHelper.DeleteRows(SURVEY_INFO_TABLE, {
|
||||||
ID: surveyID
|
ID: surveyID
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user