Skip to content

Commit aa5f2cf

Browse files
RGBKnightsnicolodavis
authored andcommitted
added the useNewUrlParser option to the Mongo connect() (#285)
1 parent 954a775 commit aa5f2cf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/server/db/mongo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export class Mongo {
2929
* Connect to the instance.
3030
*/
3131
async connect() {
32-
const c = await this.client.connect(this.url);
32+
const c = await this.client.connect(this.url, { useNewUrlParser: true });
3333
this.db = c.db(this.dbname);
3434
return;
3535
}

0 commit comments

Comments
 (0)