Compare commits

..

No commits in common. "65fb449a4ab9310eb840247470e31fd2685b11f8" and "2c155b1060c1225e5d93e32bd7fb42588b604448" have entirely different histories.

5 changed files with 7 additions and 10 deletions

View File

@ -1,6 +1,6 @@
MIT License
Copyright (c) 2022 Sébastien Clément
Copyright (c) 2021 Sébastien Clément
Permission is hereby granted, free of charge, to any person obtaining a copy
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
Copyright (c) 2022 Sébastien Clément
Copyright (c) 2021 Sébastien Clément
Permission is hereby granted, free of charge, to any person obtaining a copy
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
[issue]: https://github.com/Sebclem/hassio-nextcloud-backup/issues
[license-shield]: https://img.shields.io/github/license/Sebclem/hassio-nextcloud-backup.svg
[maintenance-shield]: https://img.shields.io/maintenance/yes/2022.svg
[maintenance-shield]: https://img.shields.io/maintenance/yes/2021.svg
[project-stage-shield]: https://img.shields.io/badge/project%20stage-Beta-red.svg
[reddit]: https://reddit.com/r/homeassistant
[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
[forum-shield]: https://img.shields.io/badge/community-forum-brightgreen.svg
[forum]: https://community.home-assistant.io/
[maintenance-shield]: https://img.shields.io/maintenance/yes/2022.svg
[maintenance-shield]: https://img.shields.io/maintenance/yes/2021.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]: 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
[forum-shield]: https://img.shields.io/badge/community-forum-brightgreen.svg
[forum]: https://community.home-assistant.io/
[maintenance-shield]: https://img.shields.io/maintenance/yes/2022.svg
[maintenance-shield]: https://img.shields.io/maintenance/yes/2021.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]: https://github.com/Sebclem/hassio-nextcloud-backup/releases

View File

@ -241,12 +241,9 @@ function dellSnap(id) {
responseType: "json",
};
got.delete(`http://hassio/backups/${id}`, option)
got.post(`http://hassio/backups/${id}/remove`, option)
.then(() => resolve())
.catch((e) => {
logger.error(e)
reject();
});
.catch(() => reject());
})
.catch(() => {
reject();