Skip to content

Commit

Permalink
fix(db_ops): fix two incorrectly named variables
Browse files Browse the repository at this point in the history
  • Loading branch information
kvwalker committed Jul 9, 2018
1 parent fca1185 commit 15dc808
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/operations/db_ops.js
Original file line number Diff line number Diff line change
Expand Up @@ -336,8 +336,8 @@ function createListener(db, e, object) {
* @param {Object} [options] Optional settings. See Db.prototype.dropCollection for a list of options.
* @param {Db~resultCallback} [callback] The results callback
*/
function dropCollection(db, cmd, options, callback) {
executeCommand(db, cmd, options, (err, result) => {
function dropCollection(db, name, options, callback) {
executeCommand(db, name, options, (err, result) => {
// Did the user destroy the topology
if (db.serverConfig && db.serverConfig.isDestroyed()) {
return callback(new MongoError('topology was destroyed'));
Expand Down Expand Up @@ -505,8 +505,8 @@ function executeCommand(db, command, options, callback) {
* @param {object} [options] Optional settings. See Db.prototype.executeDbAdminCommand for a list of options.
* @param {Db~resultCallback} [callback] The command result callback
*/
function executeDbAdminCommand(db, selector, options, callback) {
db.s.topology.command('admin.$cmd', selector, options, (err, result) => {
function executeDbAdminCommand(db, command, options, callback) {
db.s.topology.command('admin.$cmd', command, options, (err, result) => {
// Did the user destroy the topology
if (db.serverConfig && db.serverConfig.isDestroyed()) {
return callback(new MongoError('topology was destroyed'));
Expand Down

0 comments on commit 15dc808

Please sign in to comment.