Skip to content

Commit

Permalink
[test] firstLogined 처음 처리 early Join 에서 포함하지 않기
Browse files Browse the repository at this point in the history
  • Loading branch information
khyojun committed Nov 11, 2024
1 parent a6e9313 commit c60a3b5
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ public void afterRealjoin(JoinRequestDto joinRequestDto, CustomUserDetails user)

User findUser = userRepository.findByNickname(nickname)
.orElseThrow(() -> new JoinException("유저가 존재하지 않습니다."));
// if(Boolean.FALSE.equals(findUser.getFirstLogined()))
// findUser.toggleLogined();
if(Boolean.FALSE.equals(findUser.getFirstLogined()))
findUser.toggleLogined();
// GitbalApiDto gitbalApiDto = GitbalApiDto.of(userService.calculateUserScore(nickname));

//loginRequestDto 학교이름, 지역이름, 프로필 이미지 이름
Expand All @@ -65,8 +65,8 @@ public void earlyJoin(String nickname){
User findUser = userRepository.findByNickname(nickname)
.orElseThrow(() -> new JoinException("유저가 존재하지 않습니다."));

if(Boolean.FALSE.equals(findUser.getFirstLogined()))
findUser.toggleLogined();
// if(Boolean.FALSE.equals(findUser.getFirstLogined()))
// findUser.toggleLogined();

GitbalApiDto gitbalApiDto = GitbalApiDto.of(userService.calculateUserScore(nickname));

Expand Down

0 comments on commit c60a3b5

Please sign in to comment.