mirror of
https://github.com/Sebclem/hassio-nextcloud-backup.git
synced 2024-11-22 09:12:58 +01:00
🚑 Fix Auto clean causing crash #23
This commit is contained in:
parent
a281d30529
commit
f6845c53f2
@ -140,11 +140,11 @@ class CronContainer {
|
|||||||
_clean() {
|
_clean() {
|
||||||
let autoCleanlocal = settingsTools.getSettings().auto_clean_local;
|
let autoCleanlocal = settingsTools.getSettings().auto_clean_local;
|
||||||
if (autoCleanlocal != null && autoCleanlocal === "true") {
|
if (autoCleanlocal != null && autoCleanlocal === "true") {
|
||||||
hassioApiTools.clean();
|
hassioApiTools.clean().catch(() => {});
|
||||||
}
|
}
|
||||||
let autoCleanCloud = settingsTools.getSettings().auto_clean_backup;
|
let autoCleanCloud = settingsTools.getSettings().auto_clean_backup;
|
||||||
if (autoCleanCloud != null && autoCleanCloud === "true") {
|
if (autoCleanCloud != null && autoCleanCloud === "true") {
|
||||||
this.clean().catch();
|
webdav.clean().catch(() => {});
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user