Skip to content

Commit

Permalink
fix: 회원 번호 비교 연산 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
hocaron committed Aug 23, 2024
1 parent 1a5dee0 commit 47955f0
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 47955f0

Please sign in to comment.