show only future unconfirmed events in admin

This commit is contained in:
les
2020-03-31 18:15:27 +02:00
parent ae40062e71
commit 316d1cf45c
3 changed files with 4 additions and 3 deletions
+2 -1
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]