Skip to content

Commit

Permalink
fix: 웹소켓 메시지 response에 발신자의 email 정보 추가하여 응답
Browse files Browse the repository at this point in the history
  • Loading branch information
lee1684 committed May 26, 2024
1 parent 052d831 commit 15c2ffb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions back-end/src/main/java/kr/co/ssalon/web/dto/MessageDTO.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ public class MessageDTO {
private String message;
@NotBlank
private LocalDateTime date;
@NotBlank
private String email;

public MessageDTO(Message messageEntity) {
Member messageSendMember = messageEntity.getMemberMeeting().getMember();
Expand All @@ -30,5 +32,6 @@ public MessageDTO(Message messageEntity) {
this.profilePicture = messageSendMember.getProfilePictureUrl();
this.message = messageEntity.getMessage();
this.date = messageEntity.getSentAt();
this.email = messageSendMember.getEmail();
}
}

0 comments on commit 15c2ffb

Please sign in to comment.