[GITEA] notifies admins on new user registration (squash) DeleteByID

trivial conflict because of
   778ad795fd Refactor deletion (#28610)

(cherry picked from commit 05682614e5ef2462cbb6a1635ca01e296fe03d23)
(cherry picked from commit 64bd374803a76c97619fe1e28bfc74f99ec91677)
This commit is contained in:
Earl Warren 2024-01-01 16:21:03 +01:00
parent 63b9b624bd
commit 63d086f666
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -40,7 +40,7 @@ func getTestUsers(t *testing.T) []*user_model.User {
func cleanUpUsers(ctx context.Context, users []*user_model.User) {
for _, u := range users {
db.DeleteByID(ctx, u.ID, new(user_model.User))
db.DeleteByID[user_model.User](ctx, u.ID)
}
}