diff --git a/map/app/controllers/locationsController.js b/map/app/controllers/locationsController.js index 7566708..701db40 100644 --- a/map/app/controllers/locationsController.js +++ b/map/app/controllers/locationsController.js @@ -12,9 +12,15 @@ const { class LocationsController { async getAll(req, res) { try { - const { limit = 1000, offset = 0, where } = req.query; + const { limit, offset = 0, where } = req.query; + + const params = { offset }; + + // Only add limit if explicitly provided in query + if (limit !== undefined) { + params.limit = limit; + } - const params = { limit, offset }; if (where) params.where = where; logger.info('Fetching locations from NocoDB');