mirror of
https://github.com/Sebclem/hassio-nextcloud-backup.git
synced 2024-12-23 22:46:44 +01:00
🚑 Fix Auto clean causing crash #23
This commit is contained in:
parent
a281d30529
commit
f6845c53f2
@ -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(() => {});
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user