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
|
@ -226,7 +226,7 @@
|
|||
</button>
|
||||
</div>
|
||||
|
||||
<div class="w-full flex flex-col gap-2" data-tab="account/security">
|
||||
<div class="w-full flex flex-col gap-2 hidden" data-tab="account/security">
|
||||
<div class="card tertiary flex flex-col gap-2">
|
||||
<a href="#/account" class="button secondary">
|
||||
{{ icon "arrow-left" }}
|
||||
|
@ -352,7 +352,7 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div class="w-full flex flex-col gap-2" data-tab="account/blocks">
|
||||
<div class="w-full flex flex-col gap-2 hidden" data-tab="account/blocks">
|
||||
<div class="card tertiary flex flex-col gap-2">
|
||||
<a href="#/account" class="button secondary">
|
||||
{{ icon "arrow-left" }}
|
||||
|
@ -391,7 +391,7 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div class="w-full flex flex-col gap-2" data-tab="account/billing">
|
||||
<div class="w-full flex flex-col gap-2 hidden" data-tab="account/billing">
|
||||
<div class="card tertiary flex flex-col gap-2">
|
||||
<a href="#/account" class="button secondary">
|
||||
{{ icon "arrow-left" }}
|
||||
|
|
|
@ -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