From 4f8d72c162fffa4973ceadcfd8f7deb1631e1fdc Mon Sep 17 00:00:00 2001 From: Dobromir Popov Date: Tue, 28 May 2024 22:29:29 +0300 Subject: [PATCH] fix to filter out future repeating availbilities --- src/helpers/data.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/data.js b/src/helpers/data.js index fb306c6..4713e0e 100644 --- a/src/helpers/data.js +++ b/src/helpers/data.js @@ -331,7 +331,7 @@ async function filterPublishersNew(selectFields, filterDate, isExactTime = false { dayOfMonth: null }, //{ dayofweek: dayOfWeekEnum }, // we want all days of the week for now // moved down to conditional filters - // { startTime: { lte: filterTimeTo } }, // we ignore startTime as it will be filtered later only by the time and not by date. + { startTime: { lte: filterTimeTo } }, // we ignore startTime as it will be filtered later only by the time and not by date. ! but we need it to filter future repeating availabilities that are not yet started on the request date { OR: [ // OR condition for repeatUntil to handle events that either end after filterDate or repeat forever { endDate: { gte: filterTimeFrom } }, // endDate included