forked from jmug/stoatchat
feat: use auto db configuration
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user