Commit 403af224 authored by Sandro Lutz's avatar Sandro Lutz Committed by Sandro Lutz
Browse files

Fix API query for upcoming events

parent c2306648
......@@ -46,7 +46,12 @@ export default class EventController {
show_website: true,
time_start: { $gt: date },
time_advertising_start: { $lt: date },
$or: [{ time_register_end: { $lt: date } }, { time_register_start: { $gt: date } }],
$or: [
{ time_register_start: null },
{ time_register_end: null },
{ time_register_end: { $lt: date } },
{ time_register_start: { $gt: 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