From 5186df15e371ac4b1020e8d3cfbcace60284febb Mon Sep 17 00:00:00 2001 From: Sibunnayak Date: Thu, 29 Aug 2024 10:05:17 +0530 Subject: [PATCH] task --- resources/Task/TaskController.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/Task/TaskController.js b/resources/Task/TaskController.js index cf2aba7..2cc70fa 100644 --- a/resources/Task/TaskController.js +++ b/resources/Task/TaskController.js @@ -27,9 +27,9 @@ const updateOverdueTasks = async () => { }; // Schedule the cron job to run daily at midnight -cron.schedule('0 0 * * *', updateOverdueTasks); - // Schedule the cron job to run daily at 10:36 AM for testing -// cron.schedule("36 10 * * *", updateOverdueTasks); +cron.schedule("10 10 * * *", updateOverdueTasks); + +// cron.schedule("30 9 * * *", updateOverdueTasks); const parseDate = (dateStr) => { const [day, month, year] = dateStr.split("/").map(Number);