From 2e6c4faa276ceb9bc52132693b5dc4406333631c Mon Sep 17 00:00:00 2001 From: Matt Broadstone Date: Thu, 28 Jun 2018 15:41:53 -0400 Subject: [PATCH] fix(collection): correctly shallow clone passed in options --- lib/db.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/db.js b/lib/db.js index dbe9f58087..da539b6070 100644 --- a/lib/db.js +++ b/lib/db.js @@ -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;