Skip to content

Commit

Permalink
refactor(BoardHashtagRepository): group by와 distinct 동시 사용 대신 group b…
Browse files Browse the repository at this point in the history
…y 단독 사용으로 수정
  • Loading branch information
mingmingmon committed Dec 24, 2024
1 parent fb49e64 commit c33240f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public interface BoardHashtagRepository extends JpaRepository<BoardHashtagJpaEnt
nativeQuery = true)
List<BoardHashtagJpaEntity> findAllIncludingDeletedByBoardId(Long boardId);

@Query("SELECT DISTINCT b.boardId " +
@Query("SELECT b.boardId " +
"FROM BoardHashtagJpaEntity b " +
"WHERE b.hashtagId IN :hashtagIds " +
"AND b.isDeleted = false " +
Expand Down

0 comments on commit c33240f

Please sign in to comment.