Skip to content

Commit 01f02dd

Browse files
committed
fix: 암장/레벨 재선택 예외처리 제거
1 parent d74d099 commit 01f02dd

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/main/java/com/climbup/climbup/user/service/OnboardingServiceImpl.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,6 @@ public void completeOnboarding(Long userId, Long gymId, Long gymLevelId) {
6464
public void setUserGym(Long userId, Long gymId) {
6565
User user = findUserById(userId);
6666

67-
if (user.hasCompletedOnboarding()) {
68-
throw new UserOnboardingAlreadyCompleteException("이미 암장을 선택한 사용자입니다.");
69-
}
70-
7167
ClimbingGym gym = findGymById(gymId);
7268
user.selectGym(gym);
7369

@@ -85,10 +81,6 @@ public void setUserGym(Long userId, Long gymId) {
8581
public void setUserGymLevel(Long userId, Long gymLevelId) {
8682
User user = findUserById(userId);
8783

88-
if (user.hasCompletedOnboarding()) {
89-
throw new UserOnboardingAlreadyCompleteException("이미 암장 레벨을 선택한 사용자입니다.");
90-
}
91-
9284
// 레벨 설정 시 암장이 선택되어 있어야 함
9385
if (user.getGym() == null) {
9486
throw new GymNotSelectedException();

0 commit comments

Comments
 (0)