Skip to content

Commit

Permalink
RAC-452 fix : 후배 가입(추가 가입)시 user생성 후 wish 세팅하도록 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
ywj9811 committed Oct 23, 2024
1 parent e3b1b7f commit 463441b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@ public void saveSenior(User user) {
}

public void saveJunior(User user, Wish wish) {
user.addWish(wish);
userRepository.saveJunior(user, wish);
}

public void changeJunior(Wish wish) {
public void changeJunior(User user, Wish wish) {
user.addWish(wish);
userRepository.changeJunior(wish);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public User userSignUp(SignUpRequest request) {
userUtils.checkPhoneNumber(request.phoneNumber());
User user = UserMapper.mapToUser(request, profileUtils.juniorProfile(rd.nextInt(5)));
Wish wish = UserMapper.mapToWish(user, request);
userSaveService.saveJunior(user,wish);
userSaveService.saveJunior(user, wish);
if (request.matchingReceive())
bizppurioJuniorMessage.matchingWaiting(user);
slackSignUpMessage.sendJuniorSignUp(user, wish);
Expand All @@ -76,7 +76,7 @@ public User changeSenior(User user, SeniorChangeRequest changeRequest) {

public void changeUser(User user, UserChangeRequest changeRequest) {
Wish wish = UserMapper.mapToWish(user, changeRequest);
userSaveService.changeJunior(wish);
userSaveService.changeJunior(user, wish);
if (changeRequest.matchingReceive())
bizppurioJuniorMessage.matchingWaiting(user);
slackSignUpMessage.sendJuniorSignUp(user, wish);
Expand Down

0 comments on commit 463441b

Please sign in to comment.