Skip to content

Commit

Permalink
[feat] : 채팅 메시지 요청 필드명 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
hyun2371 committed Sep 28, 2024
1 parent a482df2 commit 0bb2a21
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ public record ChatMessageRequest(
String type,

@NotNull(message = "회원 아이디를 입력해주세요.")
Long memberId
Long senderId
) {
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ public ChatMessageResponse saveChatMessage(
ChatMessageRequest request,
Long chatRoomId
) {
Long memberId = request.memberId();
Long senderId = request.senderId();
ChatMessage chatMessage = chatMessageRepository.save(
ChatMessageMapper.toChatMessage(request, chatRoomId, memberId));
log.info("chatRoomId = {}, memberId= {}, chatMessageId= {}", chatRoomId, memberId, chatMessage.getId());
ChatMessageMapper.toChatMessage(request, chatRoomId, senderId));
log.info("chatRoomId = {}, senderId= {}, chatMessageId= {}", chatRoomId, senderId, chatMessage.getId());
return ChatMessageMapper.toChatMessageResponse(chatMessage);
}
}

0 comments on commit 0bb2a21

Please sign in to comment.