Skip to content

Commit

Permalink
Merge pull request #198 from TripInfoWeb/fix/user-login
Browse files Browse the repository at this point in the history
fix : 로그인 유저 상태 확인 수정
  • Loading branch information
hyeonjaez authored Sep 22, 2024
2 parents 5d5d889 + 42e2bb9 commit 0da5cb5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@

public interface UserRepository extends JpaRepository<User, Long>, UserRepositoryCustom {

@Query("SELECT u FROM User u JOIN FETCH u.userImage WHERE u.id = :userId AND u.userStatus = '활성화' OR u.userStatus = '비활성화'")
@Query("SELECT u FROM User u JOIN FETCH u.userImage WHERE u.id = :userId AND (u.userStatus = '활성화' OR u.userStatus = '비활성화')")
User findByUserId(Long userId);

@Query("SELECT u FROM User u JOIN FETCH u.userImage WHERE u.oauthId = :oauthId AND u.userStatus = '활성화' OR u.userStatus = '비활성화'")
@Query("SELECT u FROM User u JOIN FETCH u.userImage WHERE u.oauthId = :oauthId AND (u.userStatus = '활성화' OR u.userStatus = '비활성화')")
Optional<User> findByOauthId(String oauthId);

boolean existsByNickname(String nickname);
Expand Down

0 comments on commit 0da5cb5

Please sign in to comment.