Skip to content

Commit

Permalink
sendMessage in chat service should return the message record
Browse files Browse the repository at this point in the history
  • Loading branch information
roncodes committed Apr 8, 2024
1 parent c3937a6 commit 70b1fe3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/services/chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 70b1fe3

Please sign in to comment.