Fix: Use channel_invites collection name instead of invites.
Was conflicting with invite-only rauth registrations.
This commit is contained in:
@@ -37,9 +37,9 @@ pub async fn create_database() {
|
||||
.await
|
||||
.expect("Failed to create server_bans collection.");
|
||||
|
||||
db.create_collection("invites", None)
|
||||
db.create_collection("channel_invites", None)
|
||||
.await
|
||||
.expect("Failed to create invites collection.");
|
||||
.expect("Failed to create channel_invites collection.");
|
||||
|
||||
db.create_collection("migrations", None)
|
||||
.await
|
||||
|
||||
@@ -152,9 +152,9 @@ pub async fn run_migrations(revision: i32) -> i32 {
|
||||
.expect("Failed to create server_bans collection.");
|
||||
|
||||
get_db()
|
||||
.create_collection("invites", None)
|
||||
.create_collection("channel_invites", None)
|
||||
.await
|
||||
.expect("Failed to create invites collection.");
|
||||
.expect("Failed to create channel_invites collection.");
|
||||
}
|
||||
|
||||
// Reminder to update LATEST_REVISION when adding new migrations.
|
||||
|
||||
Reference in New Issue
Block a user