diff options
| author | nanalelfe <nargiza.nosirova@mail.utoronto.ca> | 2016-07-21 23:25:55 +0000 |
|---|---|---|
| committer | nanalelfe <nargiza.nosirova@mail.utoronto.ca> | 2016-07-21 23:25:55 +0000 |
| commit | dc3888553bdda4ee30e6440992459916cec8d911 (patch) | |
| tree | 3103577d8ca32f798e88468da305e26ff260bf5b /node_modules/mongodb/lib/collection.js | |
| parent | 39ef1b6fd37bb9b725676d3a98f13e3450798200 (diff) | |
Need pull
Diffstat (limited to 'node_modules/mongodb/lib/collection.js')
| -rw-r--r-- | node_modules/mongodb/lib/collection.js | 5 |
1 files changed, 3 insertions, 2 deletions
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); |
