Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -187,12 +187,12 @@ public boolean checkNickname(String nickname) {
public UpdateProfileResponse updateProfile(Member loginMember, UpdateProfileRequest request, MultipartFile image) {
Member member = memberReader.getByEmail(loginMember.getEmail());

String profileImageUrl = null;
if (image != null) {
UploadImageInfo uploadImageInfo = s3Service.uploadMemberProfileImage(image);
member.updateProfile(request, uploadImageInfo.ImageUrl());
} else {
member.updateProfileWithoutImage(request);
profileImageUrl = uploadImageInfo.ImageUrl();
}
member.updateProfile(request, profileImageUrl);

memberAlcoholTypeWriter.deleteAllByMember(member);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,6 @@ public void updateProfile(UpdateProfileRequest request, String profileImageUrl)
this.gender = request.gender();
}

public void updateProfileWithoutImage(UpdateProfileRequest request) {
this.nickname = request.nickname();
this.introduction = request.introduction();
this.gender = request.gender();
}

public void deleteAccount() {
this.deletedAt = LocalDateTime.now();
this.profileImage = null;
Expand Down