We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20e11b3 commit 2e6c4faCopy full SHA for 2e6c4fa
lib/db.js
@@ -313,7 +313,7 @@ const collectionKeys = [
313
Db.prototype.collection = function(name, options, callback) {
314
if (typeof options === 'function') (callback = options), (options = {});
315
options = options || {};
316
- Object.assign({}, options);
+ options = Object.assign({}, options);
317
318
// Set the promise library
319
options.promiseLibrary = this.s.promiseLibrary;
0 commit comments