Skip to content

Commit

Permalink
fix: 매거진 댓글 수정,삭제 시 작성자이지만 요청이 처리되지 않는 문제 해결
Browse files Browse the repository at this point in the history
- MagazineComment의 Member는 HibnerateProxy 객체이므로 동일성 검사 (==) 시 실패함
- 이를 해결하기 위해 equals를 통한 동등성 검사 수행
  • Loading branch information
Hoon9901 committed May 15, 2024
1 parent 3d1e371 commit f71bf03
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public Long getParentCommentId() {
}

public Boolean isCommentAuthor(Member member) {
return this.member == member;
return this.member.equals(member);
}

public void update(MagazineCommentRequest.Update updateComment) {
Expand Down

0 comments on commit f71bf03

Please sign in to comment.