mirror of
https://github.com/stoatchat/stoatchat.git
synced 2026-07-14 05:26:59 +00:00
fix(join invite): create instead of insert member
This commit is contained in:
@@ -38,7 +38,7 @@ pub async fn req(db: &Db, user: User, target: Ref) -> Result<Value> {
|
||||
..Default::default()
|
||||
};
|
||||
|
||||
db.insert_member(&member).await?;
|
||||
member.create(db).await?;
|
||||
|
||||
Ok(json!({
|
||||
"type": "Server",
|
||||
|
||||
Reference in New Issue
Block a user