Skip to content

Commit

Permalink
Merge pull request #87 from locavell/chore/#86
Browse files Browse the repository at this point in the history
Chore/#86
  • Loading branch information
J-neat authored Aug 22, 2024
2 parents 540bdf4 + 4ffaeef commit d4026a5
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ public void signUp(UserSignUpDto userSignUpDto) throws Exception{
.password(userSignUpDto.getPassword())
.nickname(userSignUpDto.getNickname())
.username(userSignUpDto.getUsername())
.introduce(userSignUpDto.getIntroduce())
.phone_num(userSignUpDto.getPhone_num())
.access(Access.USER)
.created_at(LocalDateTime.now())
.build();
Expand Down Expand Up @@ -108,8 +106,6 @@ public User updateUser(HttpServletRequest httpServletRequest, UserRequestDto.Upd
User user = userRepository.findByEmail(email).orElseThrow(() -> new UserHandler(ErrorStatus.USER_NOT_FOUND));
if(updateUserDTO.getName() != null) user.setUserName(updateUserDTO.getName());
if(updateUserDTO.getNickname() != null) user.setNickname(updateUserDTO.getNickname());
if(updateUserDTO.getIntroduce() != null) user.setIntroduce(updateUserDTO.getIntroduce());
if(updateUserDTO.getPhone_num() != null) user.setPhone_num(updateUserDTO.getPhone_num());
return user;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ public static class UpdateUserProfileDto{
public static class UpdateUserDTO{
private String name;
private String nickname;
private String introduce;
private String phone_num;
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,4 @@ public class UserSignUpDto {
private String password;
private String username;
private String nickname;
private String introduce;
private String phone_num;
}

0 comments on commit d4026a5

Please sign in to comment.