Skip to content

Commit

Permalink
Remove include and order parameters when counting records
Browse files Browse the repository at this point in the history
  • Loading branch information
vladaspasic committed Jan 22, 2017
1 parent e3d3fdb commit b18cd4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rest-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class RestService {

return keys.all({
rows: model.findAll(query),
count: model.count(query)
count: model.count(_.omit(query, ['include']))
});
}

Expand Down

0 comments on commit b18cd4b

Please sign in to comment.