feat: use auto db configuration

This commit is contained in:
Paul Makles committed 2022-02-21 14:48:36 +00:00
1 parent d7be1db755
commit aab85fa143
2 files changed
+13 -4

No files matched your search

+1 -4
View File
@@ -121,10 +121,7 @@ async fn launch_web() {
};
}
let db = DatabaseInfo::MongoDb("mongodb://localhost")
.connect()
.await
.unwrap();
let db = DatabaseInfo::Auto.connect().await.unwrap();
db.migrate_database().await.unwrap();
let mongo_db = mongodb::Client::with_uri_str("mongodb://localhost")