task
This commit is contained in:
parent
e4514df821
commit
5186df15e3
@ -27,9 +27,9 @@ const updateOverdueTasks = async () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Schedule the cron job to run daily at midnight
|
// Schedule the cron job to run daily at midnight
|
||||||
cron.schedule('0 0 * * *', updateOverdueTasks);
|
cron.schedule("10 10 * * *", updateOverdueTasks);
|
||||||
// Schedule the cron job to run daily at 10:36 AM for testing
|
|
||||||
// cron.schedule("36 10 * * *", updateOverdueTasks);
|
// cron.schedule("30 9 * * *", updateOverdueTasks);
|
||||||
|
|
||||||
const parseDate = (dateStr) => {
|
const parseDate = (dateStr) => {
|
||||||
const [day, month, year] = dateStr.split("/").map(Number);
|
const [day, month, year] = dateStr.split("/").map(Number);
|
||||||
|
Loading…
Reference in New Issue
Block a user