Skip to content

Commit

Permalink
refactor(#60): change return variable's name
Browse files Browse the repository at this point in the history
  • Loading branch information
hobiJeong committed Nov 21, 2023
1 parent 28ba6dd commit 0b32ab3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/chat/services/chat.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,15 +139,15 @@ export class ChatService {
receiverId,
);

const data = {
const chat = {
content: returnedChat.content,
sender: returnedChat.sender,
receiver: returnedChat.receiver,
};

if (returnedChat) this.subject.next(returnedChat);

return data;
return chat;
}

async createChatImage(
Expand Down

0 comments on commit 0b32ab3

Please sign in to comment.