aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/admin_regenerate.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2024-03-04 16:57:39 +0800
committerGitHub <noreply@github.com>2024-03-04 08:57:39 +0000
commite2277d07ca5112a797f8c86f825060027ff1c2da (patch)
tree77dc35194eaf4afb0f94265b46ec3c0faf312826 /cmd/admin_regenerate.go
parentc337ff0ec70618ef2ead7850f90ab2a8458db192 (diff)
downloadgitea-e2277d07ca5112a797f8c86f825060027ff1c2da.tar.gz
gitea-e2277d07ca5112a797f8c86f825060027ff1c2da.zip
Move some asymkey functions to service layer (#28894)
After the moving, all models will not depend on `util.Rename` so that I can do next step refactoring.
Diffstat (limited to 'cmd/admin_regenerate.go')
-rw-r--r--cmd/admin_regenerate.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/admin_regenerate.go b/cmd/admin_regenerate.go
index 0db505ff9c..ab769f6d0c 100644
--- a/cmd/admin_regenerate.go
+++ b/cmd/admin_regenerate.go
@@ -4,8 +4,8 @@
package cmd
import (
- asymkey_model "code.gitea.io/gitea/models/asymkey"
"code.gitea.io/gitea/modules/graceful"
+ asymkey_service "code.gitea.io/gitea/services/asymkey"
repo_service "code.gitea.io/gitea/services/repository"
"github.com/urfave/cli/v2"
@@ -42,5 +42,5 @@ func runRegenerateKeys(_ *cli.Context) error {
if err := initDB(ctx); err != nil {
return err
}
- return asymkey_model.RewriteAllPublicKeys(ctx)
+ return asymkey_service.RewriteAllPublicKeys(ctx)
}