Skip to content

Commit 36c3c7d

Browse files
committed
fix(estimated-document-count): support options other than maxTimeMs
1 parent 2012211 commit 36c3c7d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/collection.js

-2
Original file line numberDiff line numberDiff line change
@@ -1388,8 +1388,6 @@ Collection.prototype.estimatedDocumentCount = function(options, callback) {
13881388
if (typeof options === 'function') (callback = options), (options = {});
13891389
options = options || {};
13901390

1391-
options = typeof options.maxTimeMS === 'number' ? options : {};
1392-
13931391
return executeOperation(this.s.topology, count, [this, null, options, callback]);
13941392
};
13951393

0 commit comments

Comments
 (0)