fix events selection
This commit is contained in:
@@ -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(',')
|
||||||
|
|||||||
Reference in New Issue
Block a user