Skip to content

Commit

Permalink
Merge pull request #151 from YogitTeam/feat/report
Browse files Browse the repository at this point in the history
#9 fix: 보드 마이클럽 조회api-active인 마이클럽만 조회 조건 추가
  • Loading branch information
xhaktmchl authored Mar 15, 2023
2 parents 4b2bef8 + aa296a8 commit 77331ec
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public interface BoardUserRepository extends JpaRepository<BoardUser, Long> {
@Query("select bu from BoardUser bu where bu.user.id = :userId and bu.board.id = :boardId and bu.status = 'ACTIVE'")
Optional<BoardUser> findByUserIdAndBoardId(@Param("userId") Long userId, @Param("boardId") Long boardId);

@Query("select bu from BoardUser bu where bu.status = 'ACTIVE' and bu.user.id = :userId")
@Query("select bu from BoardUser bu where bu.status = 'ACTIVE' and bu.user.id = :userId and bu.board.status = 'ACTIVE'")
Page<BoardUser> findByUserId(Pageable pageable, @Param("userId") Long userId);

@Query("select bu from BoardUser bu where bu.status = 'ACTIVE' and bu.board.id = :boardId")
Expand Down

0 comments on commit 77331ec

Please sign in to comment.