Commit 2da74bb0 authored by Arun Kumar's avatar Arun Kumar
Browse files

running at 12 AM

parent 4c1153c8
1 merge request!28updateInspectionScheduleStatus to delayed
Showing with 1 addition and 1 deletion
+1 -1
......@@ -79,7 +79,7 @@ const updateStatus = (updateStr) => {
};
// Schedule the task to run every day at midnight
const scheduledJob = cron.schedule('* * * * *', async () => {
const scheduledJob = cron.schedule('0 0 * * *', async () => {
console.log('Cron job running at 12 AM');
try {
const currentDate = new Date();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment