diff --git a/mashup-domain/src/main/java/kr/mashup/branding/service/member/MemberService.java b/mashup-domain/src/main/java/kr/mashup/branding/service/member/MemberService.java index b7b12a47..08d569c0 100644 --- a/mashup-domain/src/main/java/kr/mashup/branding/service/member/MemberService.java +++ b/mashup-domain/src/main/java/kr/mashup/branding/service/member/MemberService.java @@ -363,12 +363,14 @@ public List getAllByBirthdaySender(Generation generation) { } List 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());