Skip to content

Commit 67b2216

Browse files
authored
Merge pull request #341 from Board-Buddy/feature/#340
[Fix] 프로필 이미지 수정시 발생하는 이슈 해결 작업
2 parents 000f1b1 + 91dff08 commit 67b2216

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/sumcoda/boardbuddy/service/ProfileService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ public void updateProfile(String username, MemberRequest.UpdateProfileDTO update
170170
if (oldProfileImage != null) {
171171
final String deleteKey = buildProfileImageS3RequestKey(oldProfileImage.getS3SavedObjectName());
172172

173-
member.assignProfileImage(null);
173+
profileImageRepository.delete(oldProfileImage);
174174

175175
try {
176176
DeleteObjectRequest deleteObjectRequest = buildDeleteObjectRequest(bucketName, deleteKey);

0 commit comments

Comments
 (0)