From d3a2cc5df1c262b62ed7b5d606109d941eec475e Mon Sep 17 00:00:00 2001 From: bflykky Date: Thu, 22 Aug 2024 03:41:50 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=8C=80=ED=91=9C=20=EC=9D=B4=EB=AF=B8?= =?UTF-8?q?=EC=A7=80=20=EC=84=A0=EC=A0=95=20=EC=8B=9C=20=EC=97=B0=EC=82=B0?= =?UTF-8?q?=20=EB=88=84=EB=9D=BD=20=EB=B6=80=EB=B6=84=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/photo/elasticsearch/service/PhotoEsServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/umc/naoman/domain/photo/elasticsearch/service/PhotoEsServiceImpl.java b/src/main/java/com/umc/naoman/domain/photo/elasticsearch/service/PhotoEsServiceImpl.java index 07e3231..182a63f 100644 --- a/src/main/java/com/umc/naoman/domain/photo/elasticsearch/service/PhotoEsServiceImpl.java +++ b/src/main/java/com/umc/naoman/domain/photo/elasticsearch/service/PhotoEsServiceImpl.java @@ -37,7 +37,7 @@ public Page getAllPhotoEsListByShareGroupId(Long shareGroupId, Member m final ShareGroup shareGroup = shareGroupService.findShareGroup(shareGroupId); if (shareGroup.getImage() == null) { photoEsList.stream() - .filter(photoEs -> photoEs.getFaceTag().size() >= shareGroup.getMemberCount()) + .filter(photoEs -> photoEs.getFaceTag().size() >= shareGroup.getMemberCount() / 2) .findFirst() .ifPresent(photoEs -> shareGroup.updateImage(photoEs.getUrl())); }