Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaotoday committed Oct 23, 2019
1 parent d030d2d commit 5e44230
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "less.js",
"version": "2.0.28",
"version": "2.0.29",
"description": "A write less, do more MVC framework based on Koa.",
"main": "src/index.js",
"scripts": {
Expand Down
3 changes: 2 additions & 1 deletion src/extends/service.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = app => {
* 查询
* @returns {Promise}
*/
async find ({ id = '', attributes = null, offset = 0, limit = app.$config.PAGE_SIZE || 10, where = {}, order = [['id', 'DESC']] } = {}) {
async find ({ id = '', attributes = null, offset = 0, limit = app.$config.PAGE_SIZE || 10, group = null, where = {}, order = [['id', 'DESC']] } = {}) {
if (id) {
return this.Model.findByPk(id, {
include: this.include,
Expand All @@ -26,6 +26,7 @@ module.exports = app => {
attributes,
offset,
limit: limit === -1 ? undefined : limit,
group,
where,
order
})
Expand Down

0 comments on commit 5e44230

Please sign in to comment.