Skip to content

Commit c4be0af

Browse files
committed
feat: add options parameter to constructor
1 parent 11cab83 commit c4be0af

File tree

2 files changed

+4396
-2
lines changed

2 files changed

+4396
-2
lines changed

lib/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ const STATE_CONNECTING = 2
3737
* @classdesc DataStore adapter for using MongoDB with DADI API
3838
* @implements EventEmitter
3939
*/
40-
const DataStore = function DataStore () {
41-
this.config = config.get()
40+
const DataStore = function DataStore (options) {
41+
this.config = Object.assign({}, config.get(), options)
4242
this._connections = []
4343
this._mongoClient = new MongoClient()
4444

0 commit comments

Comments
 (0)