mirror of
https://framagit.org/les/gancio.git
synced 2025-01-31 16:42:22 +01:00
fix place and tag pages
This commit is contained in:
parent
f31e7ae2c1
commit
2134903c43
2 changed files with 2 additions and 2 deletions
|
@ -18,7 +18,7 @@ module.exports = {
|
|||
|
||||
const format = req.params.format || 'json'
|
||||
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) {
|
||||
case 'rss':
|
||||
|
|
|
@ -33,7 +33,7 @@ module.exports = {
|
|||
const eventController = require('./event')
|
||||
const format = req.params.format || 'json'
|
||||
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) {
|
||||
case 'rss':
|
||||
return exportController.feed(req, res, events,
|
||||
|
|
Loading…
Reference in a new issue