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

[feat #144] 채팅 요청 필드명 수정 #145

Merged
merged 1 commit into from
Nov 16, 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 @@ -54,7 +54,7 @@ public class ChatInquiry extends TimeBaseEntity {
@Column(name = "status", nullable = false)
private InquiryStatus status;

@Column(name = "message", nullable = false)
@Column(name = "inquiryMessage", nullable = false)
private String message;

private ChatInquiry(QuestionPost questionPost, Member inquirer, Member answerer, String message) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ public record CreateChatInquiryRequest(
Long answererId,

@NotNull(message = "요청 메시지는 필수 입력 항목입니다.")
String message
String inquiryMessage
) {
}
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public CreateChatInquiryResponse createChatInquiry(CreateChatInquiryRequest requ
Member answerer = getMemberById(request.answererId());

ChatInquiry chatInquiry = chatInquiryRepository.save(
ChatInquiryMapper.toChatInquiry(questionPost, inquirer, answerer, request.message())
ChatInquiryMapper.toChatInquiry(questionPost, inquirer, answerer, request.inquiryMessage())
);

eventPublisher.publishEvent(
Expand Down
Loading