Skip to content

Commit

Permalink
[merge] 로그인시 host정보 불러오는 로직 수정
Browse files Browse the repository at this point in the history
[hotfix] 로그인시 host정보 불러오는 로직 수정
  • Loading branch information
lreowy authored Jul 17, 2024
2 parents 777d9c8 + d5fdfdc commit 652f785
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

public interface HostRepository extends JpaRepository<Host, Long> {

boolean existsByUserId(Long userId);

Host findHostByUserId(Long userId);

Optional<Host> findHostById(Long id);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ private boolean isExistingUser(
}

private boolean isExistingHost(final Long userId) {
return hostRepository.existsById(userId);
return hostRepository.existsByUserId(userId);
}

private Guest getOrCreateGuest(final User user) {
Expand Down

0 comments on commit 652f785

Please sign in to comment.