From aa296a8d805f001bd482d1501594b18330037741 Mon Sep 17 00:00:00 2001 From: xhaktmchl Date: Wed, 15 Mar 2023 18:37:24 +0900 Subject: [PATCH] =?UTF-8?q?#9=20fix:=20=EB=B3=B4=EB=93=9C=20=EB=A7=88?= =?UTF-8?q?=EC=9D=B4=ED=81=B4=EB=9F=BD=20=EC=A1=B0=ED=9A=8Capi-active?= =?UTF-8?q?=EC=9D=B8=20=EB=A7=88=EC=9D=B4=ED=81=B4=EB=9F=BD=EB=A7=8C=20?= =?UTF-8?q?=EC=A1=B0=ED=9A=8C=20=EC=A1=B0=EA=B1=B4=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/yogit/server/board/repository/BoardUserRepository.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/main/java/com/yogit/server/board/repository/BoardUserRepository.java b/server/src/main/java/com/yogit/server/board/repository/BoardUserRepository.java index daa85ad..6864497 100644 --- a/server/src/main/java/com/yogit/server/board/repository/BoardUserRepository.java +++ b/server/src/main/java/com/yogit/server/board/repository/BoardUserRepository.java @@ -19,7 +19,7 @@ public interface BoardUserRepository extends JpaRepository { @Query("select bu from BoardUser bu where bu.user.id = :userId and bu.board.id = :boardId and bu.status = 'ACTIVE'") Optional 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 findByUserId(Pageable pageable, @Param("userId") Long userId); @Query("select bu from BoardUser bu where bu.status = 'ACTIVE' and bu.board.id = :boardId")