show only future unconfirmed events in admin

This commit is contained in:
les
2020-03-24 18:50:32 +01:00
parent 488174e1b5
commit ba6d797435
3 changed files with 4 additions and 3 deletions

View File

@@ -176,7 +176,8 @@ const eventController = {
const events = await Event.findAll({
where: {
parentId: null,
is_visible: false
is_visible: false,
start_datetime: { [Op.gt]: moment.unix() }
},
order: [['start_datetime', 'ASC']],
include: [Tag, Place]