fix task exception and send mail in dev with no smtp settings

This commit is contained in:
lesion
2021-12-03 16:20:54 +01:00
parent 88612dbd8b
commit c58de0bba8
2 changed files with 3 additions and 4 deletions

View File

@@ -33,7 +33,6 @@ class Task {
}
} catch (e) {
log.error(`TASK ERROR [${this.name}]: ${e} ${e.stack}`)
return Promise.resolve(false)
}
}
}
@@ -84,7 +83,7 @@ class TaskManager {
// remove removable tasks
this.tasks = this.tasks.filter(t => t.repeat)
return Promise.all(tasks)
return Promise.allSettled(tasks)
}
async tick () {