mirror of
https://github.com/Sebclem/hassio-nextcloud-backup.git
synced 2024-12-23 22:46:44 +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",
|
||||
};
|
||||
|
||||
got.post(`http://hassio/backups/${id}/remove`, option)
|
||||
got.delete(`http://hassio/backups/${id}`, option)
|
||||
.then(() => resolve())
|
||||
.catch(() => reject());
|
||||
.catch((e) => {
|
||||
logger.error(e)
|
||||
reject();
|
||||
});
|
||||
})
|
||||
.catch(() => {
|
||||
reject();
|
||||
|
Loading…
Reference in New Issue
Block a user