diff options
Diffstat (limited to 'services/cron')
-rw-r--r-- | services/cron/tasks_extended.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/services/cron/tasks_extended.go b/services/cron/tasks_extended.go index bc6add090b..90b391474f 100644 --- a/services/cron/tasks_extended.go +++ b/services/cron/tasks_extended.go @@ -9,6 +9,7 @@ import ( "time" "code.gitea.io/gitea/models" + asymkey_model "code.gitea.io/gitea/models/asymkey" user_model "code.gitea.io/gitea/models/user" "code.gitea.io/gitea/modules/setting" "code.gitea.io/gitea/modules/updatechecker" @@ -67,7 +68,7 @@ func registerRewriteAllPublicKeys() { RunAtStart: false, Schedule: "@every 72h", }, func(_ context.Context, _ *user_model.User, _ Config) error { - return models.RewriteAllPublicKeys() + return asymkey_model.RewriteAllPublicKeys() }) } @@ -77,7 +78,7 @@ func registerRewriteAllPrincipalKeys() { RunAtStart: false, Schedule: "@every 72h", }, func(_ context.Context, _ *user_model.User, _ Config) error { - return models.RewriteAllPrincipalKeys() + return asymkey_model.RewriteAllPrincipalKeys() }) } |