mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-04 17:34:49 -04:00
Move deletebeans into models/db (#18781)
This commit is contained in:
parent
bd71245c53
commit
397d2ac303
4 changed files with 15 additions and 16 deletions
|
@ -765,7 +765,7 @@ func DeleteRepository(doer *user_model.User, uid, repoID int64) error {
|
|||
return err
|
||||
}
|
||||
|
||||
if err := deleteBeans(sess,
|
||||
if err := db.DeleteBeans(ctx,
|
||||
&Access{RepoID: repo.ID},
|
||||
&Action{RepoID: repo.ID},
|
||||
&Collaboration{RepoID: repoID},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue