diff --git a/src/main/java/com/t3t/authenticationapi/account/repository/AccountRepository.java b/src/main/java/com/t3t/authenticationapi/account/repository/AccountRepository.java index 8c72f01..aa44c2d 100644 --- a/src/main/java/com/t3t/authenticationapi/account/repository/AccountRepository.java +++ b/src/main/java/com/t3t/authenticationapi/account/repository/AccountRepository.java @@ -8,6 +8,6 @@ public interface AccountRepository extends JpaRepository { @Query("SELECT a.id as username, m.id as userId , b.password as password, m.role as role FROM Account a " + "INNER JOIN a.member m " + "INNER JOIN BookstoreAccount b ON a.id = b.id " + - "WHERE a.id = :id") + "WHERE a.id = :id AND a.deleted = 0") UserEntityDto loadUserEntity(String id); }