From a96318f19ea7e1ce90fc9595b3443c36ceec5a13 Mon Sep 17 00:00:00 2001 From: admin Date: Fri, 15 Aug 2025 17:56:06 -0600 Subject: [PATCH] Updates to handle maps above 1000 locations --- map/app/controllers/locationsController.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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');