Skip to content

Commit

Permalink
Merge pull request #51 from kakao-tech-campus-2nd-step3/develop
Browse files Browse the repository at this point in the history
Develop 병합 2차
  • Loading branch information
yooonwodyd authored Oct 15, 2024
2 parents 2e367b2 + aeeacb6 commit 650ca33
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
5 changes: 0 additions & 5 deletions src/main/java/com/helpmeCookies/user/entity/User.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,6 @@ public class User {
@Column(nullable = false, updatable = false)
protected LocalDateTime createdAt;


public void createUser(UserInfo userInfo) {

}

public void updateUserInfo(UserInfo userInfo) {
// TODO: 유저 정보 업데이트시 유효성 검사
setUserInfo(userInfo);
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/com/helpmeCookies/user/service/UserService.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,10 @@ public class UserService {

@Transactional
public UserInfoDto getUserInfo(Long userId) {
System.out.println("userId = " + userId);
UserInfo userInfo = userRepository.findById(userId)
.orElseThrow(() -> new ResourceNotFoundException())
.getUserInfo();

System.out.println("userInfo = " + userInfo);
return UserInfoDto.fromEntity(userInfo);
}

Expand Down

0 comments on commit 650ca33

Please sign in to comment.