fix show_recurrent filter in widget

This commit is contained in:
lesion
2022-02-01 12:45:19 +01:00
parent a00b0e2f2d
commit f4a0ef5d35
2 changed files with 6 additions and 4 deletions

View File

@@ -558,8 +558,9 @@ const eventController = {
const tags = req.query.tags
const places = req.query.places
const max = req.query.max
const show_recurrent = settingsController.settings.allow_recurrent_event &&
(typeof req.query.show_recurrent !== 'undefined' ? req.query.show_recurrent === 'true' : settingsController.settings.recurrent_event_visible)
typeof req.query.show_recurrent !== 'undefined' ? req.query.show_recurrent === 'true' : settingsController.settings.recurrent_event_visible
res.json(await eventController._select({
start, end, places, tags, show_recurrent, max