mirror of
https://github.com/strapi/strapi.git
synced 2025-12-30 00:37:24 +00:00
Merge branch 'master' into develop
This commit is contained in:
commit
2d871abf6a
@ -52,14 +52,12 @@ module.exports = {
|
||||
amountLimiting: (params = {}) => {
|
||||
const { amountLimit } = strapi.plugins.graphql.config;
|
||||
|
||||
if (!params.limit) return params;
|
||||
if (!amountLimit) return params;
|
||||
|
||||
if (params.limit === -1) {
|
||||
if (!params.limit || params.limit === -1 || params.limit > amountLimit) {
|
||||
params.limit = amountLimit;
|
||||
} else if (params.limit < 0) {
|
||||
params.limit = 0;
|
||||
} else if (params.limit > amountLimit) {
|
||||
params.limit = amountLimit;
|
||||
}
|
||||
|
||||
return params;
|
||||
|
||||
@ -30,7 +30,7 @@
|
||||
"koa-convert": "^1.2.0",
|
||||
"koa-favicon": "^2.0.0",
|
||||
"koa-i18n": "^2.1.0",
|
||||
"koa-ip": "^1.0.0",
|
||||
"koa-ip": "^2.0.0",
|
||||
"koa-joi-router": "^6.0.0",
|
||||
"koa-locale": "~1.3.0",
|
||||
"koa-lusca": "~2.2.0",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user