Skip to content

Commit

Permalink
프로필 이미지 업로드 과정 삭제 로직 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Hong0329 authored May 16, 2024
1 parent 4c2865c commit 7f3de77
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public void updateMemberProfile2(Long memberId, MultipartFile multipartFile, Pro
String s3ImageUrl = s3Service.uploadImage(memberId.toString(), multipartFile);
existingMember.updateProfileUrl(s3ImageUrl);

if(!existedImage.equals(GHOST_IMAGE)||!existedImage.equals(GHOST_IMAGE_S3)) {
if(!existedImage.equals(GHOST_IMAGE)&&!existedImage.equals(GHOST_IMAGE_S3)) {
String existedKey = removeBaseUrl(existedImage, S3_URL);
s3Service.deleteImage(existedKey);
}
Expand Down

0 comments on commit 7f3de77

Please sign in to comment.