Skip to content

Commit 21618d8

Browse files
committedAug 4, 2018
change count to countDocuments
1 parent dbccb86 commit 21618d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/mongodb.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1322,7 +1322,7 @@ MongoDB.prototype.count = function count(model, where, options, callback) {
13221322
debug('count', model, where);
13231323
}
13241324
where = self.buildWhere(model, where);
1325-
this.execute(model, 'count', where, function(err, count) {
1325+
this.execute(model, 'countDocuments', where, function(err, count) {
13261326
if (self.debug) {
13271327
debug('count.callback', model, err, count);
13281328
}

0 commit comments

Comments
 (0)
Please sign in to comment.