fix(core/database): use configured database name for migrations
This commit is contained in:
@@ -22,7 +22,7 @@ impl AbstractMigrations for MongoDb {
|
|||||||
.await
|
.await
|
||||||
.expect("Failed to fetch database names.");
|
.expect("Failed to fetch database names.");
|
||||||
|
|
||||||
if list.iter().any(|x| x == "revolt") {
|
if list.iter().any(|x| x == &self.1) {
|
||||||
scripts::migrate_database(self).await;
|
scripts::migrate_database(self).await;
|
||||||
} else {
|
} else {
|
||||||
init::create_database(self).await;
|
init::create_database(self).await;
|
||||||
|
|||||||
Reference in New Issue
Block a user