From e98400cca5823b7c92cd8d83b0b8b2ef18bdd6f0 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 27 Jul 2018 03:34:28 +0900 Subject: [PATCH] :v: --- src/db/mongodb.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/db/mongodb.ts b/src/db/mongodb.ts index 6a90343be..034473b0d 100644 --- a/src/db/mongodb.ts +++ b/src/db/mongodb.ts @@ -27,7 +27,7 @@ const nativeDbConn = async (): Promise => { if (mdb) return mdb; const db = await ((): Promise => new Promise((resolve, reject) => { - mongodb.MongoClient.connect(uri, (e: Error, client: any) => { + mongodb.MongoClient.connect(uri, { useNewUrlParser: true }, (e: Error, client: any) => { if (e) return reject(e); resolve(client.db(config.mongodb.db)); });