Fix: Use channel_invites collection name instead of invites.
Was conflicting with invite-only rauth registrations.
This commit is contained in:
@@ -27,7 +27,7 @@ pub async fn req(user: User, target: Ref) -> Result<JsonValue> {
|
||||
Err(Error::MissingPermission)?
|
||||
}
|
||||
|
||||
let mut cursor = get_collection("invites")
|
||||
let mut cursor = get_collection("channel_invites")
|
||||
.find(
|
||||
doc! {
|
||||
"server": target.id
|
||||
@@ -37,7 +37,7 @@ pub async fn req(user: User, target: Ref) -> Result<JsonValue> {
|
||||
.await
|
||||
.map_err(|_| Error::DatabaseError {
|
||||
operation: "find",
|
||||
with: "invites",
|
||||
with: "channel_invites",
|
||||
})?;
|
||||
|
||||
let mut invites = vec![];
|
||||
|
||||
Reference in New Issue
Block a user