1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-11-28 14:58:24 +09:00
This commit is contained in:
syuilo 2018-07-27 03:34:28 +09:00
parent 1c25dbed66
commit a99756ef85

View File

@ -27,7 +27,7 @@ const nativeDbConn = async (): Promise<mongodb.Db> => {
if (mdb) return mdb;
const db = await ((): Promise<mongodb.Db> => 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));
});