🔨 Fix cron started if conf not exist

This commit is contained in:
Sebastien Clement 2020-01-06 18:13:38 +01:00
parent 31bc96cb7f
commit 0b803005d4

View File

@ -68,6 +68,11 @@ class CronContainer {
this.cronJob.stop();
this.cronJob = null;
}
if(!checkConfig(settingsTools.getSettings())){
console.log("No Cron settings available.")
return;
}
switch (settings.cron_base) {
case '0':
console.log("No Cron settings available.")