Skip to content

Commit

Permalink
feat(export): increase query limit for admins
Browse files Browse the repository at this point in the history
  • Loading branch information
onyxvd committed Sep 24, 2024
1 parent 7f666bb commit 56c3524
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/initializers/formMethods.js
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 56c3524

Please sign in to comment.