Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[COZY-449] fix: 쪽지 내용 앞뒤 공백 trim 처리 #217

Merged
merged 3 commits into from
Dec 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ private void checkBlockedMember(Member sender, Long recipientId) {
}

private void saveChat(ChatRoom chatRoom, Member sender, String content) {
Chat chat = ChatConverter.toEntity(chatRoom, sender, content);
Chat chat = ChatConverter.toEntity(chatRoom, sender, content.trim());
chatRepository.save(chat);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public static ChatRoomDetailResponseDTO toChatRoomDetailResponseDTO(String nickn
Long chatRoomId, Integer persona, Long memberId, boolean hasNewChat) {
return ChatRoomDetailResponseDTO.builder()
.nickname(nickname)
.lastContent(content)
.lastContent(content.trim())
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

조회에서 trim 처리는 db 밀게되면 지우겠습니다

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

출시전에 지우면 되겠네여

.chatRoomId(chatRoomId)
.persona(persona)
.memberId(memberId)
Expand Down
Loading