🚑 Fix clean using wrong http method + url (#110)

This commit is contained in:
SebClem 2022-02-11 11:45:54 +01:00
parent 2c155b1060
commit 73165cd764
No known key found for this signature in database
GPG Key ID: 3D8E353F900B1305

View File

@ -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();