Skip to content

Commit

Permalink
채팅 응답 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
kimdavid0521 committed Aug 22, 2024
1 parent ab14de0 commit 7c35e17
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public List<ChatRoomResponseDTO> getAllChatRoom() {
public List<ChatmessageResponseDTO> getChatHistory(@PathVariable Long roomId) {
return chatService.getChatMessageById(roomId).stream().map(chatMessage -> ChatmessageResponseDTO.builder()
.id(chatMessage.getId())
.senderUsername(chatMessage.getSender().getUsername())
.name(chatMessage.getSender().getUsername())
.content(chatMessage.getContent())
.chatroomId(chatMessage.getChatRoom().getId())
.build())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
public class ChatmessageResponseDTO {
private Long id;
private String content;
private String senderUsername;
private String name;
private Long chatroomId;

}

0 comments on commit 7c35e17

Please sign in to comment.