mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
refactor some functions to support ctx as first parameter (#21878)
Co-authored-by: KN4CK3R <admin@oldschoolhack.me> Co-authored-by: Lauris BH <lauris@nix.lv>
This commit is contained in:
@@ -336,7 +336,7 @@ func PackageSettingsPost(ctx *context.Context) {
|
||||
success := func() bool {
|
||||
repoID := int64(0)
|
||||
if form.RepoID != 0 {
|
||||
repo, err := repo_model.GetRepositoryByID(form.RepoID)
|
||||
repo, err := repo_model.GetRepositoryByID(ctx, form.RepoID)
|
||||
if err != nil {
|
||||
log.Error("Error getting repository: %v", err)
|
||||
return false
|
||||
|
Reference in New Issue
Block a user