fix limit for mariadb on /api/events #183

This commit is contained in:
lesion 2022-09-06 21:52:27 +02:00
parent dc6ad23207
commit c28f4969c4
No known key found for this signature in database
GPG key ID: 352918250B012177

View file

@ -723,8 +723,8 @@ const eventController = {
const end = req.query.end
const tags = req.query.tags
const places = req.query.places
const limit = req.query.max
const page = req.query.page = 0
const limit = Number(req.query.max) || 0
const page = Number(req.query.page) || 0
const older = req.query.older || false
const show_recurrent = settings.allow_recurrent_event &&