Compare commits

...

2 Commits

Author SHA1 Message Date
65fb449a4a
🎉 2022 (a bit late 😅) 2022-02-11 11:52:29 +01:00
73165cd764
🚑 Fix clean using wrong http method + url (#110) 2022-02-11 11:45:54 +01:00
5 changed files with 10 additions and 7 deletions

View File

@ -1,6 +1,6 @@
MIT License MIT License
Copyright (c) 2021 Sébastien Clément Copyright (c) 2022 Sébastien Clément
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal

View File

@ -90,7 +90,7 @@ check [the contributor's page][contributors].
MIT License MIT License
Copyright (c) 2021 Sébastien Clément Copyright (c) 2022 Sébastien Clément
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal
@ -123,7 +123,7 @@ SOFTWARE.
[i386-shield]: https://img.shields.io/badge/i386-yes-green.svg [i386-shield]: https://img.shields.io/badge/i386-yes-green.svg
[issue]: https://github.com/Sebclem/hassio-nextcloud-backup/issues [issue]: https://github.com/Sebclem/hassio-nextcloud-backup/issues
[license-shield]: https://img.shields.io/github/license/Sebclem/hassio-nextcloud-backup.svg [license-shield]: https://img.shields.io/github/license/Sebclem/hassio-nextcloud-backup.svg
[maintenance-shield]: https://img.shields.io/maintenance/yes/2021.svg [maintenance-shield]: https://img.shields.io/maintenance/yes/2022.svg
[project-stage-shield]: https://img.shields.io/badge/project%20stage-Beta-red.svg [project-stage-shield]: https://img.shields.io/badge/project%20stage-Beta-red.svg
[reddit]: https://reddit.com/r/homeassistant [reddit]: https://reddit.com/r/homeassistant
[releases-shield]: https://img.shields.io/github/release/Sebclem/hassio-nextcloud-backup.svg?include_prereleases [releases-shield]: https://img.shields.io/github/release/Sebclem/hassio-nextcloud-backup.svg?include_prereleases

View File

@ -27,7 +27,7 @@ Easily backup your Home Assistant snapshots to Nextcloud.
[docs]: https://github.com/Sebclem/hassio-nextcloud-backup/blob/master/README.md [docs]: https://github.com/Sebclem/hassio-nextcloud-backup/blob/master/README.md
[forum-shield]: https://img.shields.io/badge/community-forum-brightgreen.svg [forum-shield]: https://img.shields.io/badge/community-forum-brightgreen.svg
[forum]: https://community.home-assistant.io/ [forum]: https://community.home-assistant.io/
[maintenance-shield]: https://img.shields.io/maintenance/yes/2021.svg [maintenance-shield]: https://img.shields.io/maintenance/yes/2022.svg
[project-stage-shield]: https://img.shields.io/badge/project%20stage-beta-red.svg [project-stage-shield]: https://img.shields.io/badge/project%20stage-beta-red.svg
[release-shield]: https://img.shields.io/badge/version-<%= version %>-blue.svg [release-shield]: https://img.shields.io/badge/version-<%= version %>-blue.svg
[release]: https://img.shields.io/badge/version-<%= version %>-blue.svg [release]: https://img.shields.io/badge/version-<%= version %>-blue.svg

View File

@ -31,7 +31,7 @@ Easily backup your Home Assistant snapshots to Nextcloud.
[docs]: https://github.com/Sebclem/hassio-nextcloud-backup/blob/master/README.md [docs]: https://github.com/Sebclem/hassio-nextcloud-backup/blob/master/README.md
[forum-shield]: https://img.shields.io/badge/community-forum-brightgreen.svg [forum-shield]: https://img.shields.io/badge/community-forum-brightgreen.svg
[forum]: https://community.home-assistant.io/ [forum]: https://community.home-assistant.io/
[maintenance-shield]: https://img.shields.io/maintenance/yes/2021.svg [maintenance-shield]: https://img.shields.io/maintenance/yes/2022.svg
[project-stage-shield]: https://img.shields.io/badge/project%20stage-Beta-red.svg [project-stage-shield]: https://img.shields.io/badge/project%20stage-Beta-red.svg
[release-shield]: https://img.shields.io/github/release/Sebclem/hassio-nextcloud-backup.svg [release-shield]: https://img.shields.io/github/release/Sebclem/hassio-nextcloud-backup.svg
[release]: https://github.com/Sebclem/hassio-nextcloud-backup/releases [release]: https://github.com/Sebclem/hassio-nextcloud-backup/releases

View File

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