add missing await for updateComment for error handing

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2018-12-13 10:34:31 +01:00
parent fbe2d1c870
commit cc7018a314
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ class Comments {
/* check if comment was already posted */
let id = await this.db.getCommentID(pr) || this.findCommentID(pr)
if (id) {
this.updateComment(pr, id)
await this.updateComment(pr, id)
} else {
id = await this.postComment(pr)
await this.db.addComment(pr, id)