Skip to content

Commit

Permalink
feat(export): increase query limit for admins (#1186)
Browse files Browse the repository at this point in the history
  • Loading branch information
onyxvd authored Sep 24, 2024
1 parent 7f666bb commit 251963a
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 251963a

Please sign in to comment.