Skip to content

Commit 29dd900

Browse files
committed
fix: run refresher on init only in production
1 parent 63ddae0 commit 29dd900

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

start/scheduler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ CronJob.from({
1111
start: true,
1212
cronTime: '0 */3 * * *',
1313
onTick: () => refresher.refresh(),
14-
runOnInit: true,
14+
runOnInit: app.inProduction,
1515
})

0 commit comments

Comments
 (0)