Skip to content

Commit

Permalink
refactor : 회원가입 체중 등록 메서드 순서 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
13wjdgk committed Nov 4, 2023
1 parent cb99fe9 commit f123ea9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ public LoginResponse signUp(SignUpRequest signUpRequest) {
int recommendedCalorie = calculateRecommendedCalorie(Gender.of(signUpRequest.gender()), signUpRequest.height(),
ActivityAmount.of(signUpRequest.activityAmount()));
User savedUser = userRepository.save(userMapper.toEntity(oAuthInfoResponse, signUpRequest, activityAmount, gender, recommendedCalorie));
registerWeight(savedUser, signUpRequest.weight());
pointService.addSignupPoint(savedUser.getOauthId());
registerWeight(savedUser, signUpRequest.weight());
return authMapper.toLoginResponse(savedUser.getNickname(), false, savedUser.getHealthConnect().isConnecting());
}

Expand Down

0 comments on commit f123ea9

Please sign in to comment.