Skip to content

Commit

Permalink
pass always useNewUrlParser options on MongoClient connect()
Browse files Browse the repository at this point in the history
  • Loading branch information
mpangrazzi committed May 3, 2019
1 parent c52f595 commit ae91063
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ inherits(Manager, EventEmitter)
* @private
*/
Manager.prototype.open = function (uri, opts, fn) {
opts.useNewUrlParser = true

MongoClient.connect(uri, opts, function (err, client) {
if (err) {
this._state = STATE.CLOSED
Expand Down

0 comments on commit ae91063

Please sign in to comment.