replace setTimeout with setInterval in cron.js+

merge-requests/127/head
Moe 2019-10-03 08:10:07 -07:00
parent 71f0d61d85
commit dd53cdb662
1 changed files with 1 additions and 1 deletions

View File

@ -497,7 +497,7 @@ const processUser = function(number,rows){
var theCronInterval = null var theCronInterval = null
const setIntervalForCron = function(){ const setIntervalForCron = function(){
clearCronInterval() clearCronInterval()
theCronInterval = setTimeout(doCronJobs,parseFloat(config.cron.interval)*60000*60) theCronInterval = setInterval(doCronJobs,parseFloat(config.cron.interval)*60000*60)
} }
const clearCronInterval = function(){ const clearCronInterval = function(){
clearInterval(theCronInterval) clearInterval(theCronInterval)