mirror of
https://github.com/strapi/strapi.git
synced 2025-11-02 02:44:55 +00:00
removed extra comments
This commit is contained in:
parent
fa1da631a1
commit
1f0a2e3f81
@ -52,9 +52,9 @@ module.exports = {
|
||||
amountLimiting: (params = {}) => {
|
||||
const { amountLimit } = strapi.plugins.graphql.config;
|
||||
|
||||
if(!amountLimit) return params; // not sure if this is needed
|
||||
if(!amountLimit) return params;
|
||||
|
||||
if (!params.limit || params.limit === -1 || params.limit > amountLimit) { // combined lines which return same
|
||||
if (!params.limit || params.limit === -1 || params.limit > amountLimit) {
|
||||
params.limit = amountLimit;
|
||||
} else if (params.limit < 0) {
|
||||
params.limit = 0;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user