mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-22 17:32:30 +00:00
resolve deprecation warnings
This commit is contained in:
1 parent
977d5b482d
commit
49f931197c
1 file changed
+1
-1
@@ -6,7 +6,7 @@ const uri = process.env.MONGO_URL || "mongodb://localhost:27017/fosscord?readPre
|
||||
|
||||
console.log(`[DB] connect: ${uri}`);
|
||||
|
||||
const connection = mongoose.createConnection(uri, { autoIndex: true });
|
||||
const connection = mongoose.createConnection(uri, { autoIndex: true , useNewUrlParser: true, useUnifiedTopology: true });
|
||||
|
||||
export default <Connection>connection;
|
||||
|
||||
|
||||
Reference in new issue
Block a user