mirror of
https://github.com/Sebclem/hassio-nextcloud-backup.git
synced 2024-11-22 01:02:59 +01:00
🚑 Fix clean using wrong http method + url (#110)
This commit is contained in:
parent
2c155b1060
commit
73165cd764
@ -241,9 +241,12 @@ function dellSnap(id) {
|
|||||||
responseType: "json",
|
responseType: "json",
|
||||||
};
|
};
|
||||||
|
|
||||||
got.post(`http://hassio/backups/${id}/remove`, option)
|
got.delete(`http://hassio/backups/${id}`, option)
|
||||||
.then(() => resolve())
|
.then(() => resolve())
|
||||||
.catch(() => reject());
|
.catch((e) => {
|
||||||
|
logger.error(e)
|
||||||
|
reject();
|
||||||
|
});
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
reject();
|
reject();
|
||||||
|
Loading…
Reference in New Issue
Block a user