Commit 7ab373d6 authored by Sandro Lutz's avatar Sandro Lutz Committed by Sandro Lutz
Browse files

Fix issues with past events filter

parent 6ba0beaf
......@@ -33,10 +33,7 @@ export default class EventController {
where: {
show_website: true,
time_advertising_start: { $lt: date },
$and: [
{ $or: [{ time_start: null }, { time_start: { $lt: date } }] },
{ $or: [{ time_end: null }, { time_end: { $lt: date } }] },
],
$or: [{ time_start: null }, { time_start: { $lt: date } }],
},
};
});
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment