Skip to content

Commit d3a2cc5

Browse files
committed
fix: 대표 이미지 선정 시 연산 누락 부분 수정
1 parent 7956e78 commit d3a2cc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/umc/naoman/domain/photo/elasticsearch/service/PhotoEsServiceImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public Page<PhotoEs> getAllPhotoEsListByShareGroupId(Long shareGroupId, Member m
3737
final ShareGroup shareGroup = shareGroupService.findShareGroup(shareGroupId);
3838
if (shareGroup.getImage() == null) {
3939
photoEsList.stream()
40-
.filter(photoEs -> photoEs.getFaceTag().size() >= shareGroup.getMemberCount())
40+
.filter(photoEs -> photoEs.getFaceTag().size() >= shareGroup.getMemberCount() / 2)
4141
.findFirst()
4242
.ifPresent(photoEs -> shareGroup.updateImage(photoEs.getUrl()));
4343
}

0 commit comments

Comments
 (0)