Skip to content

Commit 6457078

Browse files
don't pass callback in
1 parent 33dd1e0 commit 6457078

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/legacy_wrappers/cursors.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ module.exports.makeLegacyFindCursor = function (baseClass) {
3636
: undefined;
3737
options = typeof options !== 'function' ? options : undefined;
3838
verbosity = typeof verbosity !== 'function' ? verbosity : undefined;
39-
return maybeCallback(super.explain(...arguments), callback);
39+
return maybeCallback(super.explain(verbosity, options), callback);
4040
}
4141

4242
close(options, callback) {
@@ -194,7 +194,7 @@ module.exports.makeLegacyAggregationCursor = function (baseClass) {
194194
: undefined;
195195
options = typeof options !== 'function' ? options : undefined;
196196
verbosity = typeof verbosity !== 'function' ? verbosity : undefined;
197-
return maybeCallback(super.explain(...arguments), callback);
197+
return maybeCallback(super.explain(verbosity, options), callback);
198198
}
199199

200200
close(options, callback) {

0 commit comments

Comments
 (0)