Skip to content

Commit

Permalink
[feat] : 채팅 요청 필드명 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
hyun2371 committed Nov 16, 2024
1 parent 069b86d commit 7350b53
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
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

0 comments on commit 7350b53

Please sign in to comment.