Skip to content

Commit

Permalink
Merge pull request #96 from Na-o-man/fix/#95/photo-delete-fix
Browse files Browse the repository at this point in the history
[FIX] 사진 삭제 로직 수정
  • Loading branch information
bflykky authored Aug 12, 2024
2 parents a1290c7 + 449c8de commit e77a45e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
import com.umc.naoman.domain.member.entity.Member;
import com.umc.naoman.domain.photo.dto.PhotoRequest;
import com.umc.naoman.domain.photo.dto.PhotoRequest.UploadSamplePhotoRequest;
import com.umc.naoman.domain.photo.dto.PhotoResponse;
import com.umc.naoman.domain.photo.dto.PhotoResponse.PhotoDownloadUrlListInfo;
import com.umc.naoman.domain.photo.dto.PhotoResponse.PhotoEsDownloadUrlListInfo;
import com.umc.naoman.domain.photo.dto.PhotoResponse.PhotoUploadInfo;
import com.umc.naoman.domain.photo.dto.PhotoResponse.PreSignedUrlInfo;
import com.umc.naoman.domain.photo.dto.PhotoResponse.SamplePhotoUploadInfo;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import com.umc.naoman.domain.photo.dto.PhotoRequest;
import com.umc.naoman.domain.photo.dto.PhotoRequest.PhotoUploadRequest;
import com.umc.naoman.domain.photo.dto.PhotoRequest.UploadSamplePhotoRequest;
import com.umc.naoman.domain.photo.dto.PhotoResponse;
import com.umc.naoman.domain.photo.dto.PhotoResponse.PhotoDownloadUrlListInfo;
import com.umc.naoman.domain.photo.dto.PhotoResponse.PhotoUploadInfo;
import com.umc.naoman.domain.photo.dto.PhotoResponse.PreSignedUrlInfo;
Expand Down Expand Up @@ -259,6 +258,7 @@ public List<Photo> deletePhotoList(PhotoRequest.PhotoDeletedRequest request, Mem
.toList();

photoRepository.deleteAllByPhotoIdList(photoIdList);
photoEsClientRepository.deletePhotoEsByRdsId(photoIdList, request.getShareGroupId());

return photoList; // 삭제된 사진 목록 반환
}
Expand Down

0 comments on commit e77a45e

Please sign in to comment.