Skip to content

Commit 09298e8

Browse files
authored
update eventSeries composable to add the ongoing records (#90)
1 parent cf97063 commit 09298e8

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed

composables/useEventSeriesListSearchFilter.js

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -90,18 +90,26 @@ async function currentEventSeriesQuery(
9090
filter: [
9191
{
9292
term: {
93-
'sectionHandle.keyword': 'ftvaEventSeries'
94-
}
93+
'sectionHandle.keyword': 'ftvaEventSeries',
94+
},
95+
},
96+
],
97+
should: [
98+
{
99+
term: {
100+
ongoing: true,
101+
},
95102
},
96103
{
97104
range: {
98-
startDate: {
99-
gte: 'now/d-8h'
100-
}
101-
}
102-
}
103-
]
104-
},
105+
endDate: {
106+
gte: 'now/d-8h',
107+
},
108+
},
109+
},
110+
],
111+
minimum_should_match: 1,
112+
}
105113
},
106114
...parseSort(sort, orderBy),
107115
}),

0 commit comments

Comments
 (0)