diff --git a/DontBeServer/src/main/java/com/dontbe/www/DontBeServer/api/member/service/MemberCommandService.java b/DontBeServer/src/main/java/com/dontbe/www/DontBeServer/api/member/service/MemberCommandService.java index f0ff277..c49a22f 100644 --- a/DontBeServer/src/main/java/com/dontbe/www/DontBeServer/api/member/service/MemberCommandService.java +++ b/DontBeServer/src/main/java/com/dontbe/www/DontBeServer/api/member/service/MemberCommandService.java @@ -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); }