Skip to content

Commit

Permalink
[fix] #221 질의응답게시판 댓글 있는 게시물 삭제되게 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
JangInho committed Feb 26, 2025
1 parent 44b71af commit f81317d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,8 @@ public void delete(Post post) {
BoardCode boardCode = boardEntity.getBoardCode();
if (boardCode.equals(getEnumBoardCodeFromStringBoardCode("청원게시판")) ||
boardCode.equals(getEnumBoardCodeFromStringBoardCode("건의게시판")) ||
boardCode.equals(getEnumBoardCodeFromStringBoardCode("인권신고게시판"))
boardCode.equals(getEnumBoardCodeFromStringBoardCode("인권신고게시판")) ||
boardCode.equals(getEnumBoardCodeFromStringBoardCode("질의응답게시판"))
) {
// 게시물에 해당하는 모든 댓글 조회 및 처리
postCommentJpaRepository.findAllByPostId(post.getId())
Expand Down

0 comments on commit f81317d

Please sign in to comment.