Skip to content

Commit

Permalink
Merge branch 'issue/34' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
swa07016 committed Oct 7, 2023
2 parents b1e32cf + 8d18ce8 commit b90ed4a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public VerificationMessage sendCode(Long userId, UserRequest.SendCodeDTO request
if(optionalUser.isPresent() && optionalUser.get().getStatus() == Status.ACTIVE) {
// 0. 1~2๋ฅผ ์ˆ˜ํ–‰ํ•œ ์†Œ์…œ๋กœ๊ทธ์ธ ๊ณ„์ • hard delete & ์•ˆ๋‚ด๋ฌธ๊ตฌ์ „์†ก
User user = optionalUser.get();
String errorMessageWithSocialType = user.getPhoneNumber() + "๋‹˜์€\n" + user.getSocialType().name() + " ์†Œ์…œ ํšŒ์›์œผ๋กœ\n๊ฐ€์ž…ํ•˜์‹  ๊ธฐ๋ก์ด ์žˆ์–ด์š”";
String errorMessageWithSocialType = user.getSocialType().name();
userRepository.deleteById(userId);
throw new UserException(CommonResponseStatus.USER_ALREADY_EXISTS, errorMessageWithSocialType);
}
Expand Down

0 comments on commit b90ed4a

Please sign in to comment.