add missing await for updateComment for error handing
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
fbe2d1c870
commit
cc7018a314
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue