[community] 커뮤니티 게시글 / 댓글 좋아요 문제 #160
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
개요
좋아요를 누르지 않아도 게시글과 댓글에 좋아요가 눌러져있는 문제가 발생하여 쿼리를 더욱 정밀하게 변경하였습니다.
본문
commentLikeCommentIds를 boardId로 where을 걸어 하였다면 해당 board.commentIds를 불러와 해당 studentId가 존재하는 것과 commentIds 가 commentLike.comment.id 와 in 절을 사용하여 조회하도록 수정하였습니다.
boardLike는 쿼리상 문제가 보이지 않았습니다. 테스트 시에도 발생하지 않았습니다