From 9bf8add7d89bed6882c525965915b673c5b2d72e Mon Sep 17 00:00:00 2001 From: Tereshchenko Aleksandr Date: Mon, 7 Oct 2024 11:13:48 +0300 Subject: [PATCH] Do not run updater on startup --- src/server/util/cron.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/util/cron.ts b/src/server/util/cron.ts index a78f12a9..6a57fedb 100644 --- a/src/server/util/cron.ts +++ b/src/server/util/cron.ts @@ -7,7 +7,7 @@ import { UPDATER_CRON_ENABLED, inDevelopment } from '../../config' const setupCron = async () => { logger.info('Starting cron jobs') - if (true || inDevelopment) { + if (inDevelopment) { await runUpdater() } else if (UPDATER_CRON_ENABLED) { cron.schedule('45 0,12 * * *', runUpdater) // Run updater every 12 hours