Skip to content

Commit

Permalink
hotfix : 이미지 삭제 로직 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
huncozyboy committed Nov 11, 2024
1 parent fd91880 commit 1b34771
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,7 @@ public ResponseEntity<ResponseDto<String>> updateProfileImage(
@DeleteMapping("/delete-profile-image")
@Operation(summary = "프로필 이미지 삭제")
public ResponseEntity<ResponseDto<Void>> deleteProfileImage(
@RequestParam("fileName") String fileName,
@Parameter(hidden = true) @CurrentUser Long userId) {
s3ImageService.deleteImage(fileName);
userProfileService.updateProfileImageUrl(userId, null);
return ResponseEntity.ok(
ResponseDto.response(IMAGE_DELETE_SUCCESS.getCode(),
Expand Down

0 comments on commit 1b34771

Please sign in to comment.