Move deletebeans into models/db (#18781)

This commit is contained in:
Lunny Xiao 2022-02-17 16:37:48 +08:00 committed by GitHub
parent bd71245c53
commit 397d2ac303
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 15 additions and 16 deletions

View file

@ -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},