diff --git a/addon/services/chat.js b/addon/services/chat.js index 4f82157..6acb469 100644 --- a/addon/services/chat.js +++ b/addon/services/chat.js @@ -70,7 +70,7 @@ export default class ChatService extends Service.extend(Evented) { sender_uuid: senderRecord.id, content: messageContent, }); - await chatMessage + return chatMessage .save() .then((chatMessage) => { if (!this.messageExistInChat(chatChannelRecord, chatMessage)) {