Skip to content

Commit

Permalink
Fix: sign-up dto 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeongho427 committed Jun 5, 2024
1 parent a49d38d commit 42b2294
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ public class CreateUserRequest {

private String imageUrl;

private String gender;
/*private String gender;
private String birthyear;
private String birthyear;*/

private String location;
}
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ public ReadMainRes readMainPage() {

@Transactional
public User createUser(CreateUserRequest request) {
int currentYear = LocalDate.now().getYear();
/* int currentYear = LocalDate.now().getYear();
int birthYear = Integer.parseInt(request.getBirthyear());
long age = currentYear - birthYear + 1;
long age = currentYear - birthYear + 1;*/
return User.builder()
.name(request.getName())
.email(request.getEmail())
Expand Down

0 comments on commit 42b2294

Please sign in to comment.