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())); }