Skip to content

Commit

Permalink
Merge pull request #222 from ssu-student-union/fix/221-qna-board-dele…
Browse files Browse the repository at this point in the history
…te-post

[fix] #221 질의응답게시판 댓글 있는 게시물 삭제되게 수정
  • Loading branch information
JangInho authored Feb 26, 2025
2 parents 44b71af + f81317d commit 53361a5
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 53361a5

Please sign in to comment.