Merge pull request #785 from flessard/master

Fix : remove query count limit
This commit is contained in:
Drew
2016-03-02 20:10:22 -08:00

View File

@@ -524,6 +524,7 @@ DatabaseController.prototype.find = function(className, query, options = {}) {
mongoWhere = {'$and': [mongoWhere, {'$or': orParts}]};
}
if (options.count) {
delete mongoOptions.limit;
return collection.count(mongoWhere, mongoOptions);
} else {
return collection.find(mongoWhere, mongoOptions)