🚑 Fix Auto clean causing crash #23

This commit is contained in:
Sebastien 2020-08-21 00:49:26 +02:00
parent a281d30529
commit f6845c53f2

View File

@ -140,11 +140,11 @@ class CronContainer {
_clean() {
let autoCleanlocal = settingsTools.getSettings().auto_clean_local;
if (autoCleanlocal != null && autoCleanlocal === "true") {
hassioApiTools.clean();
hassioApiTools.clean().catch(() => {});
}
let autoCleanCloud = settingsTools.getSettings().auto_clean_backup;
if (autoCleanCloud != null && autoCleanCloud === "true") {
this.clean().catch();
webdav.clean().catch(() => {});
}
}