Browse Source

Enabled mongoose useUnifiedTopology option to shut up warning

Kristian Vos 4 years ago
parent
commit
e9f60312e4
1 changed files with 2 additions and 3 deletions
  1. 2 3
      backend/logic/db/index.js

+ 2 - 3
backend/logic/db/index.js

@@ -38,9 +38,8 @@ class DBModule extends CoreClass {
             mongoose
                 .connect(mongoUrl, {
                     useNewUrlParser: true,
-                    useCreateIndex: true,
-                    reconnectInterval: 3000,
-                    reconnectTries: 10,
+                    useUnifiedTopology: true,
+                    useCreateIndex: true
                 })
                 .then(() => {
                     this.schemas = {