Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] 프로필 수정 API 버그 픽스 - #258 #259

Merged
merged 1 commit into from
Sep 4, 2024
Merged
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 @@ -85,9 +85,11 @@ public void editUserProfile(final Long userId,
// 안드 : 원래 이미지에서 새로운 이미지
if(userImage != null && !isNewImageNull) {
deleteImage(userImage);
String newImageUrl = getImageUrl(newImage);
foundUser.setImageUrl(newImageUrl);
}
String newImageUrl = getImageUrl(newImage);
foundUser.setImageUrl(newImageUrl);

//안드에서 원래 이미지를 그대로 사용하면 굳이 뭐를 안해도됨
} else {
throw new BadRequestException(FailureCode.INVALID_IMAGE_EDIT);
}
Expand Down
Loading