Skip to content

Commit

Permalink
fix(estimated-document-count): support options other than maxTimeMs
Browse files Browse the repository at this point in the history
  • Loading branch information
mbroadst committed Oct 22, 2018
1 parent 2012211 commit 36c3c7d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/collection.js
Original file line number Diff line number Diff line change
Expand Up @@ -1388,8 +1388,6 @@ Collection.prototype.estimatedDocumentCount = function(options, callback) {
if (typeof options === 'function') (callback = options), (options = {});
options = options || {};

options = typeof options.maxTimeMS === 'number' ? options : {};

return executeOperation(this.s.topology, count, [this, null, options, callback]);
};

Expand Down

0 comments on commit 36c3c7d

Please sign in to comment.