fix: delete memberships when community is deleted from account deletion
This commit is contained in:
parent
3706764437
commit
9ce1161361
4 changed files with 28 additions and 13 deletions
|
@ -73,7 +73,7 @@ pub async fn delete_request(
|
|||
None => return Json(Error::NotAllowed.into()),
|
||||
};
|
||||
|
||||
match data.delete_community(id, user).await {
|
||||
match data.delete_community(id, &user).await {
|
||||
Ok(_) => Json(ApiReturn {
|
||||
ok: true,
|
||||
message: "Community deleted".to_string(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue