Remove limit when counting results.

This commit is contained in:
Fosco Marotto
2016-03-06 03:32:49 -08:00
parent b3a52fb52c
commit 1450795516

View File

@@ -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;