diff --git a/start/scheduler.ts b/start/scheduler.ts index be06d86..82ab9da 100644 --- a/start/scheduler.ts +++ b/start/scheduler.ts @@ -1,7 +1,6 @@ import { CronJob } from 'cron' import app from '@adonisjs/core/services/app' -import env from '#start/env' import { PackagesDataRefresher } from '#services/packages_data_refresher' /** @@ -12,5 +11,5 @@ CronJob.from({ start: true, cronTime: '0 */3 * * *', onTick: () => refresher.refresh(), - runOnInit: !!env.get('GITHUB_TOKEN') || app.inProduction, + runOnInit: app.inProduction, })