fix: clean up orphaned user-keyed tables in deleteUser (#38511) (#38514)

This commit is contained in:
Giteabot
2026-07-20 08:41:59 +00:00
committed by GitHub
parent 1af5277aba
commit 148d528814
2 changed files with 32 additions and 0 deletions
+4
View File
@@ -96,6 +96,10 @@ func deleteUser(ctx context.Context, u *user_model.User, purge bool) (err error)
&user_model.Blocking{BlockeeID: u.ID},
&actions_model.ActionRunnerToken{OwnerID: u.ID},
&actions_model.ActionScopedWorkflowSource{OwnerID: u.ID},
&auth_model.TwoFactor{UID: u.ID},
&auth_model.WebAuthnCredential{UserID: u.ID},
&activities_model.Notification{UserID: u.ID},
&issues_model.IssueWatch{UserID: u.ID},
); err != nil {
return fmt.Errorf("deleteBeans: %w", err)
}