This commit is contained in:
lesion 2023-03-28 19:04:41 +02:00
parent 6b55ba1708
commit d7c8de7580
No known key found for this signature in database
GPG key ID: 352918250B012177
3 changed files with 4 additions and 4 deletions

View file

@ -56,11 +56,11 @@ const geocodingController = {
},
async nominatimRateLimit(req, res, next) {
geocodingController.providerRateLimit(req, res, next, nominatim.cache)
process.env.NODE_ENV === 'test' ? next() : geocodingController.providerRateLimit(req, res, next, nominatim.cache)
},
async photonRateLimit(req, res, next) {
geocodingController.providerRateLimit(req, res, next, photon.cache)
process.env.NODE_ENV === 'test' ? next() : geocodingController.providerRateLimit(req, res, next, photon.cache)
},
async checkInCache (req, res, details, providerCache) {

View file

@ -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, older: true })
const events = await eventController._select({ places: String(place.id), show_recurrent: true, reverse: true, start_datetime: 0 })
switch (format) {
case 'rss':

View file

@ -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, older: true })
const events = await eventController._select({ tags: tags.toLocaleLowerCase(), show_recurrent: true, start_datetime: 0, reverse: true })
switch (format) {
case 'rss':
return exportController.feed(req, res, events,