diff --git a/scheduler.js b/scheduler.js index 3c7919548cbcd5816523bdb531517402f18ec56d..6f2b595bbbce82f2f364e60cab7a438fa76dbb66 100644 --- a/scheduler.js +++ b/scheduler.js @@ -117,7 +117,10 @@ const scheduledJob = cron.schedule('0 0 * * *', async () => { } } }); - } catch (error) { + + scheduler2Fun(); + + } catch (error) { console.log('Cron job running at 12 AM'); console.error('Error updating status:', error.message); } }, { @@ -125,6 +128,9 @@ const scheduledJob = cron.schedule('0 0 * * *', async () => { timezone: 'Asia/Kolkata', }); +const scheduler2Fun = () => { + console.log('Arun...'); +}; console.log('Scheduler started. Waiting for scheduled tasks...'); export default { scheduledJob