fix to filter out future repeating availbilities
This commit is contained in:
@ -331,7 +331,7 @@ async function filterPublishersNew(selectFields, filterDate, isExactTime = false
|
|||||||
{ dayOfMonth: null },
|
{ dayOfMonth: null },
|
||||||
//{ dayofweek: dayOfWeekEnum }, // we want all days of the week for now
|
//{ dayofweek: dayOfWeekEnum }, // we want all days of the week for now
|
||||||
// moved down to conditional filters
|
// 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
|
OR: [ // OR condition for repeatUntil to handle events that either end after filterDate or repeat forever
|
||||||
{ endDate: { gte: filterTimeFrom } }, // endDate included
|
{ endDate: { gte: filterTimeFrom } }, // endDate included
|
||||||
|
Reference in New Issue
Block a user