From 36c3c7db3514f4c4c827ab9da2cbd23cdd9ce635 Mon Sep 17 00:00:00 2001 From: Matt Broadstone Date: Mon, 15 Oct 2018 17:05:20 -0400 Subject: [PATCH] fix(estimated-document-count): support options other than maxTimeMs --- lib/collection.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/collection.js b/lib/collection.js index dd386a9d54..183f457b0a 100644 --- a/lib/collection.js +++ b/lib/collection.js @@ -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]); };