diff --git a/data/persistence/utils/persistence-utils.js b/data/persistence/utils/persistence-utils.js index 9a46011..2df705d 100644 --- a/data/persistence/utils/persistence-utils.js +++ b/data/persistence/utils/persistence-utils.js @@ -47,7 +47,6 @@ const constructSettings = (exports.constructSettings = ( if (paging) { addPagingToSettings(settings, baseModel, paging); } - settings.subQuery = false; return settings; }); @@ -280,7 +279,7 @@ const addPagingToSettings = (exports.addPagingToSettings = ( const offset = (page - 1) * pageSize; const limit = pageSize; settings.offset = offset; - settings.limit = limit; + if (!settings.noLimit) settings.limit = limit; //el parser genera un LIMIT pero es utilizado sobre el total registros recien en el cliente }); /** diff --git a/package.json b/package.json index 1bea507..df505f8 100644 --- a/package.json +++ b/package.json @@ -9,11 +9,11 @@ }, "repository": { "type": "git", - "url": "git+ssh://git@gitlab.com/codium/node-toolkit.git" + "url": "https://github.com/codiumsa/node-toolkit.git" }, "author": "codiumsa", "license": "ISC", - "homepage": "https://gitlab.com/codium/node-toolkit#README", + "homepage": "https://github.com/codiumsa/node-toolkit", "dependencies": { "koa-jwt": "^3.2.2", "package.json": "^2.0.1",