Skip to content

Commit 68a48bb

Browse files
committed
refactor: ProfileService에서 이메일 관련 로직 제거
- `ProfileService`의 `updateProfile` 메서드에서 이메일 관련 업데이트 로직을 삭제 - 이는 프로필 수정 DTO(ProfileUpdateRequestDto)에서 이메일 필드를 제거한 변경사항에 맞춘 후속 조치
1 parent babf46c commit 68a48bb

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/main/java/com/back/domain/profile/service/ProfileService.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,6 @@ public ProfileResponseDto updateProfile(Long id, ProfileUpdateRequestDto profile
5050
user.setNickname(nickname);
5151
}
5252

53-
if (profileUpdateRequestDto.getEmail() != null) {
54-
String email = profileUpdateRequestDto.getEmail().trim();
55-
user.setEmail(email.isEmpty() ? null : email);
56-
}
57-
5853
userRepository.save(user);
5954

6055
return getProfile(id);

0 commit comments

Comments
 (0)