🔨 Move autoclean local before nextcloud

If Nexcloud is not connected, clean local anyway
This commit is contained in:
Sebastien Clement 2020-03-03 12:51:51 +01:00
parent 19c878bffa
commit 012b2de08a

View File

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