summaryrefslogtreecommitdiffstats
path: root/services/cron/tasks_basic.go
diff options
context:
space:
mode:
Diffstat (limited to 'services/cron/tasks_basic.go')
-rw-r--r--services/cron/tasks_basic.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/cron/tasks_basic.go b/services/cron/tasks_basic.go
index aad0e39591..2e6560ec0c 100644
--- a/services/cron/tasks_basic.go
+++ b/services/cron/tasks_basic.go
@@ -16,7 +16,7 @@ import (
"code.gitea.io/gitea/services/auth"
"code.gitea.io/gitea/services/migrations"
mirror_service "code.gitea.io/gitea/services/mirror"
- packages_service "code.gitea.io/gitea/services/packages"
+ packages_cleanup_service "code.gitea.io/gitea/services/packages/cleanup"
repo_service "code.gitea.io/gitea/services/repository"
archiver_service "code.gitea.io/gitea/services/repository/archiver"
)
@@ -152,7 +152,7 @@ func registerCleanupPackages() {
OlderThan: 24 * time.Hour,
}, func(ctx context.Context, _ *user_model.User, config Config) error {
realConfig := config.(*OlderThanConfig)
- return packages_service.Cleanup(ctx, realConfig.OlderThan)
+ return packages_cleanup_service.Cleanup(ctx, realConfig.OlderThan)
})
}