From 56c352425ce81c4a7f2261aaedeebb67fd668dad Mon Sep 17 00:00:00 2001 From: Daniel Petrov Date: Tue, 24 Sep 2024 17:31:37 +0300 Subject: [PATCH] feat(export): increase query limit for admins --- server/initializers/formMethods.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/initializers/formMethods.js b/server/initializers/formMethods.js index e6ddbe214..3826a2e7d 100644 --- a/server/initializers/formMethods.js +++ b/server/initializers/formMethods.js @@ -20,7 +20,7 @@ function generatePrepareQuery (form) { if (limit !== -1) { query.limit = limit } else { - query.limit = 20000 + query.limit = user.isAdmin ? 50000 : 20000 } if (params.context === 'public') { query.limit = Math.max(0, Math.min(query.limit, 1000 - query.offset))