minor on next/prev recurrent event

This commit is contained in:
les
2020-06-13 23:03:07 +02:00
parent 7ac37e0a12
commit 4ed519295e

View File

@@ -122,7 +122,7 @@ const eventController = {
attributes: ['id'], attributes: ['id'],
where: { where: {
is_visible: true, is_visible: true,
parentId: null, recurrent: null,
start_datetime: { [Op.gt]: event.start_datetime } start_datetime: { [Op.gt]: event.start_datetime }
}, },
order: [['start_datetime', 'ASC']] order: [['start_datetime', 'ASC']]
@@ -132,7 +132,7 @@ const eventController = {
attributes: ['id'], attributes: ['id'],
where: { where: {
is_visible: true, is_visible: true,
parentId: null, recurrent: null,
start_datetime: { [Op.lt]: event.start_datetime } start_datetime: { [Op.lt]: event.start_datetime }
}, },
order: [['start_datetime', 'DESC']] order: [['start_datetime', 'DESC']]