summaryrefslogtreecommitdiffstats
path: root/routers/web/org
diff options
context:
space:
mode:
authorJason Song <i@wolfogre.com>2023-03-01 06:17:51 +0800
committerGitHub <noreply@github.com>2023-02-28 16:17:51 -0600
commit04347eb810689db799003cc342bbbc756716ff12 (patch)
treea7131234f7f93717d8988cf39cc04e277823ceb7 /routers/web/org
parentcbbd3726b4edb3c2bda59610050fd5af149fbdb1 (diff)
downloadgitea-04347eb810689db799003cc342bbbc756716ff12.tar.gz
gitea-04347eb810689db799003cc342bbbc756716ff12.zip
Use context parameter in services/repository (#23186)
Use context parameter in `services/repository`. And use `cache.WithCacheContext(ctx)` to generate push action history feeds. Fix #23160
Diffstat (limited to 'routers/web/org')
-rw-r--r--routers/web/org/setting.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/org/setting.go b/routers/web/org/setting.go
index 5c9b7967c3..f713d09663 100644
--- a/routers/web/org/setting.go
+++ b/routers/web/org/setting.go
@@ -137,7 +137,7 @@ func SettingsPost(ctx *context.Context) {
}
for _, repo := range repos {
repo.OwnerName = org.Name
- if err := repo_service.UpdateRepository(repo, true); err != nil {
+ if err := repo_service.UpdateRepository(ctx, repo, true); err != nil {
ctx.ServerError("UpdateRepository", err)
return
}