aboutsummaryrefslogtreecommitdiffstats
path: root/routers/api/v1/repo/mirror.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/api/v1/repo/mirror.go')
-rw-r--r--routers/api/v1/repo/mirror.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/routers/api/v1/repo/mirror.go b/routers/api/v1/repo/mirror.go
index 9d8497927e..60f1bfe0d3 100644
--- a/routers/api/v1/repo/mirror.go
+++ b/routers/api/v1/repo/mirror.go
@@ -14,7 +14,6 @@ import (
repo_model "code.gitea.io/gitea/models/repo"
"code.gitea.io/gitea/models/unit"
"code.gitea.io/gitea/modules/context"
- mirror_module "code.gitea.io/gitea/modules/mirror"
"code.gitea.io/gitea/modules/setting"
api "code.gitea.io/gitea/modules/structs"
"code.gitea.io/gitea/modules/util"
@@ -70,7 +69,7 @@ func MirrorSync(ctx *context.APIContext) {
return
}
- mirror_module.AddPullMirrorToQueue(repo.ID)
+ mirror_service.AddPullMirrorToQueue(repo.ID)
ctx.Status(http.StatusOK)
}