minor
This commit is contained in:
@@ -56,11 +56,11 @@ const geocodingController = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
async nominatimRateLimit(req, res, next) {
|
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) {
|
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) {
|
async checkInCache (req, res, details, providerCache) {
|
||||||
|
|||||||
@@ -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, older: true })
|
const events = await eventController._select({ places: String(place.id), show_recurrent: true, reverse: true, start_datetime: 0 })
|
||||||
|
|
||||||
switch (format) {
|
switch (format) {
|
||||||
case 'rss':
|
case 'rss':
|
||||||
|
|||||||
@@ -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, older: true })
|
const events = await eventController._select({ tags: tags.toLocaleLowerCase(), show_recurrent: true, start_datetime: 0, reverse: true })
|
||||||
switch (format) {
|
switch (format) {
|
||||||
case 'rss':
|
case 'rss':
|
||||||
return exportController.feed(req, res, events,
|
return exportController.feed(req, res, events,
|
||||||
|
|||||||
Reference in New Issue
Block a user