Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
hocaron committed Aug 23, 2024
2 parents 6e68633 + 47955f0 commit 8e41ab5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import java.time.MonthDay;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.stream.Collectors;

@Service
Expand Down Expand Up @@ -57,7 +58,7 @@ private Map<MonthDay, List<MemberBirthdayDto>> calculateUpcomingBirthdays(Member
MonthDay endDay = MonthDay.from(LocalDate.now().plusDays(days));
return memberProfileService.findByBirthDateBetween(today, endDay, generation)
.stream()
.filter(birthdayDto -> birthdayDto.getMemberId() != member.getId())
.filter(birthdayDto -> !Objects.equals(birthdayDto.getMemberId(), member.getId()))
.collect(Collectors.groupingBy(MemberBirthdayDto::getBirthDate));
}

Expand Down

0 comments on commit 8e41ab5

Please sign in to comment.