소스 검색

Enabled mongoose useUnifiedTopology option to shut up warning

Kristian Vos 4 년 전
부모
커밋
e9f60312e4
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  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 = {