Skip to content

Commit

Permalink
Merge pull request #128 from Na-o-man/fix/#126/fix-member-delete
Browse files Browse the repository at this point in the history
fix: 누락된 함수 호출 로직  추가
  • Loading branch information
bflykky authored Aug 20, 2024
2 parents fb8dd6c + 2fbe8f0 commit ab77f75
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 ab77f75

Please sign in to comment.