From 98ab75f09223902f4d5da37480c1e93675501299 Mon Sep 17 00:00:00 2001 From: redblackblossom Date: Sun, 11 Aug 2024 21:00:14 +0900 Subject: [PATCH] =?UTF-8?q?refact=20:=20=EC=BD=94=EB=93=9C=20=EC=BB=A8?= =?UTF-8?q?=EB=B2=A4=EC=85=98=EC=9D=84=20=EC=A7=80=ED=82=A4=EB=8F=84?= =?UTF-8?q?=EB=A1=9D=20=EC=BD=94=EB=93=9C=20=EA=B3=A0=EC=B9=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../elasticsearch/repository/FaceVectorClientRepository.java | 2 +- .../repository/SampleFaceVectorClientRepository.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/umc/naoman/domain/photo/elasticsearch/repository/FaceVectorClientRepository.java b/src/main/java/com/umc/naoman/domain/photo/elasticsearch/repository/FaceVectorClientRepository.java index 63f6139..bd10ec7 100644 --- a/src/main/java/com/umc/naoman/domain/photo/elasticsearch/repository/FaceVectorClientRepository.java +++ b/src/main/java/com/umc/naoman/domain/photo/elasticsearch/repository/FaceVectorClientRepository.java @@ -20,7 +20,7 @@ public void deleteFaceVectorsByPhotoName(List photoNameList){ List fieldValuePhotoNameList = photoNameList.stream() .map(FieldValue::of) .toList(); - try{ + try { elasticsearchClient.deleteByQuery(delete -> delete .index("face_vectors") .query(q -> q diff --git a/src/main/java/com/umc/naoman/domain/photo/elasticsearch/repository/SampleFaceVectorClientRepository.java b/src/main/java/com/umc/naoman/domain/photo/elasticsearch/repository/SampleFaceVectorClientRepository.java index 7962b35..3658dfd 100644 --- a/src/main/java/com/umc/naoman/domain/photo/elasticsearch/repository/SampleFaceVectorClientRepository.java +++ b/src/main/java/com/umc/naoman/domain/photo/elasticsearch/repository/SampleFaceVectorClientRepository.java @@ -15,7 +15,7 @@ public class SampleFaceVectorClientRepository { private final ElasticsearchClient elasticsearchClient; public void deleteSampleFaceVectorByMemberId(Long memberId) { - try{ + try { elasticsearchClient.deleteByQuery(d -> d .index("sample_face_vectors") .query(q -> q