Skip to content

Commit

Permalink
fix: 누락된 함수 호출 로직 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
bflykky committed Aug 20, 2024
1 parent 97a61fd commit 2fbe8f0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -330,9 +330,10 @@ public List<Photo> deletePhotoList(PhotoDeletedRequest request, Member member) {
public void deletePhotoListByFaceTag(Long memberId) {
// Elasticsearch 사진 데이터 삭제
List<Long> photoIdList = photoEsClientRepository.deletePhotoEsByFaceTag(memberId);
// 삭제하려는 사진들 중 안건 후보로 등록된 것들에 대하여, 해당 사진들의 참조를 삭제
agendaPhotoService.nullifyPhotoInAgendaPhotoList(photoIdList);

List<Photo> photoList = photoRepository.findByIdIn(photoIdList);

// S3 버킷 사진 데이터 삭제
for (Photo photo : photoList) {
deletePhoto(photo.getName());
Expand Down

0 comments on commit 2fbe8f0

Please sign in to comment.