aboutsummaryrefslogtreecommitdiffstats
path: root/modules/cron/tasks_basic.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/cron/tasks_basic.go')
-rw-r--r--modules/cron/tasks_basic.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/cron/tasks_basic.go b/modules/cron/tasks_basic.go
index 6c61d628c5..a42c031b36 100644
--- a/modules/cron/tasks_basic.go
+++ b/modules/cron/tasks_basic.go
@@ -9,6 +9,7 @@ import (
"time"
"code.gitea.io/gitea/models"
+ "code.gitea.io/gitea/models/webhook"
"code.gitea.io/gitea/modules/migrations"
repository_service "code.gitea.io/gitea/modules/repository"
"code.gitea.io/gitea/modules/setting"
@@ -122,7 +123,7 @@ func registerCleanupHookTaskTable() {
NumberToKeep: 10,
}, func(ctx context.Context, _ *models.User, config Config) error {
realConfig := config.(*CleanupHookTaskConfig)
- return models.CleanupHookTaskTable(ctx, models.ToHookTaskCleanupType(realConfig.CleanupType), realConfig.OlderThan, realConfig.NumberToKeep)
+ return webhook.CleanupHookTaskTable(ctx, webhook.ToHookTaskCleanupType(realConfig.CleanupType), realConfig.OlderThan, realConfig.NumberToKeep)
})
}