Skip to content

Commit

Permalink
fix: 대표 이미지 선정 시 연산 누락 부분 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
bflykky committed Aug 21, 2024
1 parent 7956e78 commit d3a2cc5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public Page<PhotoEs> 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()));
}
Expand Down

0 comments on commit d3a2cc5

Please sign in to comment.