Skip to content

Commit

Permalink
fix: 생일 설정 해놓지 않은 케이스 대응
Browse files Browse the repository at this point in the history
  • Loading branch information
hocaron committed Aug 15, 2024
1 parent a0a550b commit eb67d4c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public List<MemberBirthdayDto> findByBirthDateBetween(MonthDay startDate, MonthD

public boolean isBirthdayToday(long memberId) {
return memberProfileRepository.findByMemberId(memberId)
.filter(memberProfile -> memberProfile.getBirthDate() != null)
.filter(memberProfile -> MonthDay.now().equals(MonthDay.from(memberProfile.getBirthDate())))
.isPresent();
}
Expand Down

0 comments on commit eb67d4c

Please sign in to comment.