Skip to content

Commit 59e4de7

Browse files
authored
Merge pull request #24 from dadi/feature/remove-config-exporty
Remove config export
2 parents a07840d + c29fa70 commit 59e4de7

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
module.exports = require(__dirname + '/lib')
2-
module.exports.Config = require(__dirname + '/config')

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const STATE_CONNECTING = 2
3838
* @implements EventEmitter
3939
*/
4040
const DataStore = function DataStore (options) {
41-
this.config = options || config.get()
41+
this.config = Object.assign({}, config.get(), options)
4242
this._connections = []
4343
this._mongoClient = new MongoClient()
4444

0 commit comments

Comments
 (0)