Skip to content

Commit

Permalink
Merge pull request #186 from UnivApp/feature/notification-refactor24
Browse files Browse the repository at this point in the history
refactor: 알림 설정 반환 리팩토링
  • Loading branch information
nyeroni authored Nov 14, 2024
2 parents 369aadf + 1872e31 commit 8a4e901
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,11 @@ public List<CalendarEventResponse> convertToDto(List<CalendarEvent> calendarEven
notificationId
));
} else {
System.out.println("==============");
System.out.println("success");
System.out.println("==============");

startDate.datesUntil(endDate.plusDays(1))
.forEach(date -> {
Notification notification = notificationRepository.findByMemberAndEventAndNotificationDate(
member, calendarEvent, date).orElse(null);
Long notificationId = notification != null ? notification.getNotificationId() : null;
System.out.println("notificationId: " + notificationId);
boolean isActive = notification != null && notification.isActive()
&& notification.getNotificationDate().equals(date);

Expand Down

0 comments on commit 8a4e901

Please sign in to comment.