Skip to content

Commit

Permalink
Merge pull request #3 from codiumsa/developer
Browse files Browse the repository at this point in the history
subQuery
  • Loading branch information
javierpf authored Oct 11, 2018
2 parents 3f7985c + 983ed11 commit e1a4761
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions data/persistence/utils/persistence-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ const constructSettings = (exports.constructSettings = (
if (paging) {
addPagingToSettings(settings, baseModel, paging);
}
settings.subQuery = false;
return settings;
});

Expand Down Expand Up @@ -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
});

/**
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit e1a4761

Please sign in to comment.