From 76f8b8faeebd8da09f66168b380bd91cbe0f9e24 Mon Sep 17 00:00:00 2001 From: Aakash Singh Date: Mon, 15 Apr 2024 16:57:31 +0530 Subject: [PATCH] add cron job to update asset configs regularly --- src/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/index.ts b/src/index.ts index 683c5e2..78ef4d0 100644 --- a/src/index.ts +++ b/src/index.ts @@ -19,6 +19,8 @@ process.env.CHECKPOINT_DISABLE = "1"; setTimeout(() => { retrieveAssetConfig(); + cron.schedule("0 */6 * * *", retrieveAssetConfig); + cron.schedule("0 */1 * * *", automatedDailyRounds); }, 100);