Merge branch 'master' of github.com:douglasvbarone/ifms-portal-de-ti
This commit is contained in:
commit
2e1c579097
|
@ -9,6 +9,10 @@ function logMsg(msg) {
|
||||||
|
|
||||||
logMsg('Scheduling tasks')
|
logMsg('Scheduling tasks')
|
||||||
|
|
||||||
|
function logMsg(msg) {
|
||||||
|
console.log(`[${format(new Date(), 'HH:MM')}] cron: ${msg}`)
|
||||||
|
}
|
||||||
|
|
||||||
cron.schedule(
|
cron.schedule(
|
||||||
'*/5 * * * *',
|
'*/5 * * * *',
|
||||||
async () => {
|
async () => {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user