mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-24 09:59:24 +02:00
Move almost all functions' parameter db.Engine to context.Context (#19748)
* Move almost all functions' parameter db.Engine to context.Context * remove some unnecessary wrap functions
This commit is contained in:
1 parent
d81e31ad78
commit
fd7d83ace6
232 files changed
+1463
-2108
No files matched your search
+1
-1
@@ -26,7 +26,7 @@ func DeleteOrganization(org *organization.Organization) error {
|
||||
defer commiter.Close()
|
||||
|
||||
// Check ownership of repository.
|
||||
count, err := repo_model.GetRepositoryCount(ctx, org.ID)
|
||||
count, err := repo_model.CountRepositories(ctx, repo_model.CountRepositoryOptions{OwnerID: org.ID})
|
||||
if err != nil {
|
||||
return fmt.Errorf("GetRepositoryCount: %v", err)
|
||||
} else if count > 0 {
|
||||
|
||||
Reference in new issue
Block a user