From dc3888553bdda4ee30e6440992459916cec8d911 Mon Sep 17 00:00:00 2001 From: nanalelfe Date: Thu, 21 Jul 2016 19:25:55 -0400 Subject: Need pull --- node_modules/mongodb/lib/collection.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'node_modules/mongodb/lib/collection.js') diff --git a/node_modules/mongodb/lib/collection.js b/node_modules/mongodb/lib/collection.js index b2bbf2b..bbe1e3b 100644 --- a/node_modules/mongodb/lib/collection.js +++ b/node_modules/mongodb/lib/collection.js @@ -20,7 +20,8 @@ var checkCollectionName = require('./utils').checkCollectionName , Define = require('./metadata') , Cursor = require('./cursor') , unordered = require('./bulk/unordered') - , ordered = require('./bulk/ordered'); + , ordered = require('./bulk/ordered') + , assign = require('./utils').assign; /** * @fileOverview The **Collection** class is an internal class that embodies a MongoDB collection @@ -1386,7 +1387,7 @@ define.classMethod('findOne', {callback: true, promise:true}); Collection.prototype.rename = function(newName, opt, callback) { var self = this; if(typeof opt == 'function') callback = opt, opt = {}; - opt = Object.assign({}, opt, {readPreference: ReadPreference.PRIMARY}); + opt = assign({}, opt, {readPreference: ReadPreference.PRIMARY}); // Execute using callback if(typeof callback == 'function') return rename(self, newName, opt, callback); -- cgit v1.2.3