Skip to content

Commit

Permalink
added the useNewUrlParser option to the Mongo connect() (#285)
Browse files Browse the repository at this point in the history
  • Loading branch information
RGBKnights authored and nicolodavis committed Oct 15, 2018
1 parent 954a775 commit aa5f2cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/db/mongo.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class Mongo {
* Connect to the instance.
*/
async connect() {
const c = await this.client.connect(this.url);
const c = await this.client.connect(this.url, { useNewUrlParser: true });
this.db = c.db(this.dbname);
return;
}
Expand Down

0 comments on commit aa5f2cf

Please sign in to comment.