Skip to content

Commit 599e90e

Browse files
committed
fix: 불필요한 로직 삭제
1 parent 463aff2 commit 599e90e

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

apps/commerce-api/src/main/java/com/loopers/domain/user/User.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class User {
1818
private static final String EMAIL_PATTERN = "^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,6}$";
1919
private static final String BIRTHDATE_PATTERN = "^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$";
2020

21-
@Id()
21+
@Id
2222
@GeneratedValue(strategy = GenerationType.IDENTITY)
2323
private Long id;
2424
String userId;

apps/commerce-api/src/main/java/com/loopers/domain/user/UserService.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ public UserResponse signUp(UserCreationCommand command) {
1616
throw new IllegalArgumentException("이미 가입된 ID입니다.");
1717
});
1818

19-
userRepository.findByUserId(command.userId());
2019
User user = userRepository.save(command.toUser());
2120
return UserResponse.from(user);
2221
}

0 commit comments

Comments
 (0)