diff options
author | 6543 <6543@obermui.de> | 2020-09-28 21:00:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-28 15:00:52 -0400 |
commit | 4a654a8d44bf4b0dc9ab1bf850be68f73b25e5cd (patch) | |
tree | 275810fd57012920f583eaadb2281283683576bd /routers/repo | |
parent | 14e718695a999be199b61b57d60e9760d70ef439 (diff) | |
download | gitea-4a654a8d44bf4b0dc9ab1bf850be68f73b25e5cd.tar.gz gitea-4a654a8d44bf4b0dc9ab1bf850be68f73b25e5cd.zip |
Mirror: Update DB on Address-Update too (#12964)
* Mirror: Update DB on Address-Update too
* new name for function to better describe
Diffstat (limited to 'routers/repo')
-rw-r--r-- | routers/repo/setting.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/repo/setting.go b/routers/repo/setting.go index 865dea9bca..ca222375fb 100644 --- a/routers/repo/setting.go +++ b/routers/repo/setting.go @@ -202,8 +202,8 @@ func SettingsPost(ctx *context.Context, form auth.RepoSettingForm) { address = u.String() - if err := mirror_service.SaveAddress(ctx.Repo.Mirror, address); err != nil { - ctx.ServerError("SaveAddress", err) + if err := mirror_service.UpdateAddress(ctx.Repo.Mirror, address); err != nil { + ctx.ServerError("UpdateAddress", err) return } |