fix events selection

This commit is contained in:
les
2020-10-27 11:57:11 +01:00
parent 52efc9c017
commit f70c24584d

View File

@@ -424,12 +424,15 @@ const eventController = {
// confirmed event only // confirmed event only
recurrent: null, recurrent: null,
is_visible: true, is_visible: true,
end_datetime: { [Op.gt]: start } [Op.or]: {
start_datetime: { [Op.gt]: start },
end_datetime: { [Op.gt]: start }
}
} }
if (end) { // if (end) {
where.end_datetime = { [Op.lt]: end } // where.end_datetime = { [Op.lt]: end }
} // }
if (places) { if (places) {
where.placeId = places.split(',') where.placeId = places.split(',')