[management] update account delete with proper proxy domain and service cleanup (#5817)

This commit is contained in:
Pascal Fischer
2026-04-10 13:08:04 +02:00
committed by GitHub
parent 789b4113fe
commit 15709bc666
7 changed files with 75 additions and 6 deletions

View File

@@ -396,6 +396,11 @@ func (s *SqlStore) DeleteAccount(ctx context.Context, account *types.Account) er
return result.Error
}
result = tx.Select(clause.Associations).Delete(account.Services, "account_id = ?", account.Id)
if result.Error != nil {
return result.Error
}
result = tx.Select(clause.Associations).Delete(account)
if result.Error != nil {
return result.Error