fix: delete memberships when community is deleted from account deletion

This commit is contained in:
trisua 2025-05-09 22:59:19 -04:00
parent 3706764437
commit 9ce1161361
4 changed files with 28 additions and 13 deletions

View file

@ -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(),