Skip to content

Commit 2cc9600

Browse files
committed
Merge pull request #785 from flessard/master
Fix : remove query count limit
2 parents cd4c416 + f3b7138 commit 2cc9600

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Controllers/DatabaseController.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,7 @@ DatabaseController.prototype.find = function(className, query, options = {}) {
524524
mongoWhere = {'$and': [mongoWhere, {'$or': orParts}]};
525525
}
526526
if (options.count) {
527+
delete mongoOptions.limit;
527528
return collection.count(mongoWhere, mongoOptions);
528529
} else {
529530
return collection.find(mongoWhere, mongoOptions)

0 commit comments

Comments
 (0)