Skip to content

Commit

Permalink
Add the await statement to deal the Livechat.sendMessage as a promise. (
Browse files Browse the repository at this point in the history
  • Loading branch information
renatobecker authored Mar 20, 2020
1 parent 292a7c3 commit b060e07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/apps/server/bridges/livechat.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class AppLivechatBridge {
message: this.orch.getConverters().get('messages').convertAppMessage(message),
};

const msg = Livechat.sendMessage(data);
const msg = await Livechat.sendMessage(data);

return msg._id;
}
Expand Down

0 comments on commit b060e07

Please sign in to comment.