Skip to content

Commit

Permalink
🚑 Fix clean using wrong http method + url (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebclem committed Feb 11, 2022
1 parent 2c155b1 commit 73165cd
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 73165cd

Please sign in to comment.