Skip to content

Commit

Permalink
Merge pull request #105 from Modagbul/feat/alarm_minsu
Browse files Browse the repository at this point in the history
hotfix: 프로필 사진 수정 null 체크
  • Loading branch information
minsu20 authored Dec 3, 2023
2 parents 6af1e96 + ccffea9 commit 68f28c6
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import org.springframework.stereotype.Service;

import javax.transaction.Transactional;
import java.util.concurrent.CompletableFuture;

@Service
@RequiredArgsConstructor
Expand All @@ -26,7 +25,7 @@ public GetProfileResponse getProfile(String socialId){
@Transactional
public void updateProfile(String socialId, UpdateProfileRequest updateProfileRequest) {
Member member = memberGetService.getMemberBySocialId(socialId);
if(updateProfileRequest.getProfileImage()!=null){
if (updateProfileRequest.getProfileImage() != null && member.getProfileImage() != null) {
s3Service.deleteImage(member.getProfileImage());
}
member.updateProfile(
Expand Down

0 comments on commit 68f28c6

Please sign in to comment.