aboutsummaryrefslogtreecommitdiffstats
path: root/routers/web
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2024-03-01 10:23:00 +0800
committerGitHub <noreply@github.com>2024-03-01 02:23:00 +0000
commit58ce1de994c2a036ebf7137c143ce193694d740d (patch)
tree0e88485e095f31a9124e2643d528d323c30b9ce5 /routers/web
parent5e32cd6beb1a4f11bd19e6d44ba2a50828b686ef (diff)
downloadgitea-58ce1de994c2a036ebf7137c143ce193694d740d.tar.gz
gitea-58ce1de994c2a036ebf7137c143ce193694d740d.zip
Move migration functions to services layer (#29497)
Diffstat (limited to 'routers/web')
-rw-r--r--routers/web/repo/setting/setting.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/routers/web/repo/setting/setting.go b/routers/web/repo/setting/setting.go
index b13c4c2ddb..0f649acba3 100644
--- a/routers/web/repo/setting/setting.go
+++ b/routers/web/repo/setting/setting.go
@@ -23,7 +23,6 @@ import (
"code.gitea.io/gitea/modules/indexer/stats"
"code.gitea.io/gitea/modules/lfs"
"code.gitea.io/gitea/modules/log"
- repo_module "code.gitea.io/gitea/modules/repository"
"code.gitea.io/gitea/modules/setting"
"code.gitea.io/gitea/modules/structs"
"code.gitea.io/gitea/modules/util"
@@ -693,7 +692,7 @@ func SettingsPost(ctx *context.Context) {
}
repo.IsMirror = false
- if _, err := repo_module.CleanUpMigrateInfo(ctx, repo); err != nil {
+ if _, err := repo_service.CleanUpMigrateInfo(ctx, repo); err != nil {
ctx.ServerError("CleanUpMigrateInfo", err)
return
} else if err = repo_model.DeleteMirrorByRepoID(ctx, ctx.Repo.Repository.ID); err != nil {