Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into 48-Develop브랜치-푸시시-…
Browse files Browse the repository at this point in the history
…CI/CD-구현
  • Loading branch information
yoonseopkim committed Nov 13, 2024
2 parents 55a3017 + beb2c20 commit 35c71cc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,6 @@ public void updateMemberInfo(Long memberId,

// 이미지 파일이 있을 경우에만 업로드 진행
if (imageFile != null && !imageFile.isEmpty()) {
// 기존 이미지가 깃허브 기본 이미지가 아니면 삭제
if (avatarUrl != null && !avatarUrl.contains("avatars.githubusercontent.com")) {
s3Service.deleteFile(avatarUrl);
}

// 새 이미지 업로드
avatarUrl = s3Service.uploadFile(imageFile);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,6 @@ public void updateResume(String memberId, String resumeId, UpdateResumeRequestDT
String avatarUrl = resume.getAvatarUrl();

if (imageFile != null && !imageFile.isEmpty()) {
if (avatarUrl != null && !avatarUrl.contains("avatars.githubusercontent.com")) {
s3Service.deleteFile(avatarUrl);
}

avatarUrl = s3Service.uploadFile(imageFile);
}

Expand Down

0 comments on commit 35c71cc

Please sign in to comment.