fix place and tag pages

This commit is contained in:
lesion 2023-04-05 16:15:41 +02:00
parent f31e7ae2c1
commit 2134903c43
No known key found for this signature in database
GPG key ID: 352918250B012177
2 changed files with 2 additions and 2 deletions

View file

@ -18,7 +18,7 @@ module.exports = {
const format = req.params.format || 'json' const format = req.params.format || 'json'
log.debug(`Events for place: ${placeName}`) log.debug(`Events for place: ${placeName}`)
const events = await eventController._select({ places: String(place.id), show_recurrent: true, reverse: true, start_datetime: 0 }) const events = await eventController._select({ places: String(place.id), show_recurrent: true, reverse: true, start: 0 })
switch (format) { switch (format) {
case 'rss': case 'rss':

View file

@ -33,7 +33,7 @@ module.exports = {
const eventController = require('./event') const eventController = require('./event')
const format = req.params.format || 'json' const format = req.params.format || 'json'
const tags = req.params.tag const tags = req.params.tag
const events = await eventController._select({ tags: tags.toLocaleLowerCase(), show_recurrent: true, start_datetime: 0, reverse: true }) const events = await eventController._select({ tags: tags.toLocaleLowerCase(), show_recurrent: true, start: 0, reverse: true })
switch (format) { switch (format) {
case 'rss': case 'rss':
return exportController.feed(req, res, events, return exportController.feed(req, res, events,