Skip to content

Commit

Permalink
don't pass callback in
Browse files Browse the repository at this point in the history
  • Loading branch information
baileympearson committed Oct 11, 2024
1 parent 33dd1e0 commit 6457078
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/legacy_wrappers/cursors.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ module.exports.makeLegacyFindCursor = function (baseClass) {
: undefined;
options = typeof options !== 'function' ? options : undefined;
verbosity = typeof verbosity !== 'function' ? verbosity : undefined;
return maybeCallback(super.explain(...arguments), callback);
return maybeCallback(super.explain(verbosity, options), callback);
}

close(options, callback) {
Expand Down Expand Up @@ -194,7 +194,7 @@ module.exports.makeLegacyAggregationCursor = function (baseClass) {
: undefined;
options = typeof options !== 'function' ? options : undefined;
verbosity = typeof verbosity !== 'function' ? verbosity : undefined;
return maybeCallback(super.explain(...arguments), callback);
return maybeCallback(super.explain(verbosity, options), callback);
}

close(options, callback) {
Expand Down

0 comments on commit 6457078

Please sign in to comment.