Skip to content

Commit 7727700

Browse files
committed
fix(collection): correctly shallow clone passed in options
1 parent 2bcbc12 commit 7727700

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/db.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ const collectionKeys = [
313313
Db.prototype.collection = function(name, options, callback) {
314314
if (typeof options === 'function') (callback = options), (options = {});
315315
options = options || {};
316-
Object.assign({}, options);
316+
options = Object.assign({}, options);
317317

318318
// Set the promise library
319319
options.promiseLibrary = this.s.promiseLibrary;

0 commit comments

Comments
 (0)