Skip to content

Commit

Permalink
fix(collection): correctly shallow clone passed in options
Browse files Browse the repository at this point in the history
  • Loading branch information
mbroadst committed Jun 29, 2018
1 parent 20e11b3 commit 2e6c4fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/db.js
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ const collectionKeys = [
Db.prototype.collection = function(name, options, callback) {
if (typeof options === 'function') (callback = options), (options = {});
options = options || {};
Object.assign({}, options);
options = Object.assign({}, options);

// Set the promise library
options.promiseLibrary = this.s.promiseLibrary;
Expand Down

0 comments on commit 2e6c4fa

Please sign in to comment.