develop #18

Merged
gitadmin merged 3 commits from develop into master 2026-08-20 10:37:45 +09:00
Showing only changes of commit d975f8ad1f - Show all commits

View File

@@ -69,8 +69,14 @@ public class ReserveService {
boolean requestPast,
LocalDateTime now
) {
LocalDateTime startDt = requestPast ? now.minusMinutes(NOTIFICATION_RANGE_MINUTES) : now;
LocalDateTime endDt = now.plusMinutes(NOTIFICATION_RANGE_MINUTES);
LocalDateTime currentMinute = now.withSecond(0).withNano(0);
LocalDateTime startDt = requestPast
? currentMinute.minusMinutes(NOTIFICATION_RANGE_MINUTES)
: currentMinute;
LocalDateTime endDt = currentMinute
.plusMinutes(NOTIFICATION_RANGE_MINUTES)
.withSecond(59)
.withNano(999_999_999);
return toDtosWithProjectNames(
listReserveRepository.findNotifications(userId, startDt, endDt)
);