Skip to content

Commit 15dc808

Browse files
authored
fix(db_ops): fix two incorrectly named variables
1 parent fca1185 commit 15dc808

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/operations/db_ops.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -336,8 +336,8 @@ function createListener(db, e, object) {
336336
* @param {Object} [options] Optional settings. See Db.prototype.dropCollection for a list of options.
337337
* @param {Db~resultCallback} [callback] The results callback
338338
*/
339-
function dropCollection(db, cmd, options, callback) {
340-
executeCommand(db, cmd, options, (err, result) => {
339+
function dropCollection(db, name, options, callback) {
340+
executeCommand(db, name, options, (err, result) => {
341341
// Did the user destroy the topology
342342
if (db.serverConfig && db.serverConfig.isDestroyed()) {
343343
return callback(new MongoError('topology was destroyed'));
@@ -505,8 +505,8 @@ function executeCommand(db, command, options, callback) {
505505
* @param {object} [options] Optional settings. See Db.prototype.executeDbAdminCommand for a list of options.
506506
* @param {Db~resultCallback} [callback] The command result callback
507507
*/
508-
function executeDbAdminCommand(db, selector, options, callback) {
509-
db.s.topology.command('admin.$cmd', selector, options, (err, result) => {
508+
function executeDbAdminCommand(db, command, options, callback) {
509+
db.s.topology.command('admin.$cmd', command, options, (err, result) => {
510510
// Did the user destroy the topology
511511
if (db.serverConfig && db.serverConfig.isDestroyed()) {
512512
return callback(new MongoError('topology was destroyed'));

0 commit comments

Comments
 (0)