aboutsummaryrefslogtreecommitdiffstats
path: root/routers/web/repo/setting/setting.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/web/repo/setting/setting.go')
-rw-r--r--routers/web/repo/setting/setting.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/repo/setting/setting.go b/routers/web/repo/setting/setting.go
index 68943586ef..35c9098178 100644
--- a/routers/web/repo/setting/setting.go
+++ b/routers/web/repo/setting/setting.go
@@ -695,7 +695,7 @@ func SettingsPost(ctx *context.Context) {
if _, err := repo_module.CleanUpMigrateInfo(ctx, repo); err != nil {
ctx.ServerError("CleanUpMigrateInfo", err)
return
- } else if err = repo_model.DeleteMirrorByRepoID(ctx.Repo.Repository.ID); err != nil {
+ } else if err = repo_model.DeleteMirrorByRepoID(ctx, ctx.Repo.Repository.ID); err != nil {
ctx.ServerError("DeleteMirrorByRepoID", err)
return
}