Skip to content

Commit

Permalink
Remove limit when counting results.
Browse files Browse the repository at this point in the history
  • Loading branch information
gfosco committed Mar 6, 2016
1 parent b3a52fb commit 1450795
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/RestQuery.js
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,7 @@ RestQuery.prototype.runCount = function() {
}
this.findOptions.count = true;
delete this.findOptions.skip;
delete this.findOptions.limit;
return this.config.database.find(
this.className, this.restWhere, this.findOptions).then((c) => {
this.response.count = c;
Expand Down

0 comments on commit 1450795

Please sign in to comment.