mirror of
https://framagit.org/les/gancio.git
synced 2025-01-31 16:42:22 +01:00
fix limit for mariadb on /api/events #183
This commit is contained in:
parent
dc6ad23207
commit
c28f4969c4
1 changed files with 2 additions and 2 deletions
|
@ -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 &&
|
||||
|
|
Loading…
Reference in a new issue