Skip to content

Commit

Permalink
fix: 생일자가 한명인 경우만 생일 푸시 제외하도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
hocaron committed Aug 14, 2024
1 parent cf929a2 commit 6bd12df
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -363,12 +363,14 @@ public List<Member> getAllByBirthdaySender(Generation generation) {
}

List<Member> senders = memberRepository.findAllActiveByGeneration(generation);
senders.removeAll(recipients);
// 오늘 생일인 멤버가 한 명뿐인 경우, 그 멤버를 발신자 목록에서 제외
if (recipients.size() == 1) {
senders.removeAll(recipients);
}

return senders;
}


@Transactional
public void updatePushCheckTime(final Member member) {
member.updatePushCheckTime(LocalDateTime.now());
Expand Down

0 comments on commit 6bd12df

Please sign in to comment.