From 2fbe8f0ef8fa1784ecbdbd75adba26267157be25 Mon Sep 17 00:00:00 2001 From: bflykky Date: Tue, 20 Aug 2024 19:23:49 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=88=84=EB=9D=BD=EB=90=9C=20=ED=95=A8?= =?UTF-8?q?=EC=88=98=20=ED=98=B8=EC=B6=9C=20=EB=A1=9C=EC=A7=81=20=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/umc/naoman/domain/photo/service/PhotoServiceImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/umc/naoman/domain/photo/service/PhotoServiceImpl.java b/src/main/java/com/umc/naoman/domain/photo/service/PhotoServiceImpl.java index 8967522..4c0a079 100644 --- a/src/main/java/com/umc/naoman/domain/photo/service/PhotoServiceImpl.java +++ b/src/main/java/com/umc/naoman/domain/photo/service/PhotoServiceImpl.java @@ -330,9 +330,10 @@ public List deletePhotoList(PhotoDeletedRequest request, Member member) { public void deletePhotoListByFaceTag(Long memberId) { // Elasticsearch 사진 데이터 삭제 List photoIdList = photoEsClientRepository.deletePhotoEsByFaceTag(memberId); + // 삭제하려는 사진들 중 안건 후보로 등록된 것들에 대하여, 해당 사진들의 참조를 삭제 + agendaPhotoService.nullifyPhotoInAgendaPhotoList(photoIdList); List photoList = photoRepository.findByIdIn(photoIdList); - // S3 버킷 사진 데이터 삭제 for (Photo photo : photoList) { deletePhoto(photo.getName());