Skip to content

Commit ae91063

Browse files
committed
pass always useNewUrlParser options on MongoClient connect()
1 parent c52f595 commit ae91063

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/manager.js

+2
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ inherits(Manager, EventEmitter)
126126
* @private
127127
*/
128128
Manager.prototype.open = function (uri, opts, fn) {
129+
opts.useNewUrlParser = true
130+
129131
MongoClient.connect(uri, opts, function (err, client) {
130132
if (err) {
131133
this._state = STATE.CLOSED

0 commit comments

Comments
 (0)