Skip to content

Commit

Permalink
fix : 댓글 알림 시, 작성자와 이미지 URL은 현재 댓글을 작성한 Member의 정보이므로 trigger에서 반환하도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
java-saeng committed Sep 27, 2023
1 parent 7d0c8da commit b22fd80
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@ public class CommentNotificationEvent {

public static CommentNotificationEvent of(final Comment comment, final Comment trigger) {
final Member member = comment.getMember();
final Member triggerMember = trigger.getMember();

return new CommentNotificationEvent(
member.getId(),
trigger.getId(),
LocalDateTime.now(),
UPDATE_NOTIFICATION_COMMENT_TYPE,
trigger.getContent(),
member.getName(),
member.getImageUrl()
triggerMember.getName(),
triggerMember.getImageUrl()
);
}

}

0 comments on commit b22fd80

Please sign in to comment.