Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
HasuraNodeComponent
Commits
2da74bb0
Commit
2da74bb0
authored
1 year ago
by
Arun Kumar
Browse files
Options
Download
Patches
Plain Diff
running at 12 AM
parent
4c1153c8
main
UAT
1 merge request
!28
updateInspectionScheduleStatus to delayed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scheduler.js
+1
-1
scheduler.js
with
1 addition
and
1 deletion
+1
-1
scheduler.js
+
1
−
1
View file @
2da74bb0
...
...
@@ -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
();
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets