mirror of
https://github.com/Sebclem/hassio-nextcloud-backup.git
synced 2024-11-22 09:12:58 +01:00
✴️ Fix error triggered on 204 error upload
This commit is contained in:
parent
961b43188e
commit
cd7ca7344d
@ -180,7 +180,7 @@ class WebdavTools {
|
||||
reject(status.message);
|
||||
|
||||
}).on('response', (res) => {
|
||||
if (res.statusCode != 201) {
|
||||
if (res.statusCode != 201 && res.statusCode != 204) {
|
||||
status.status = "error";
|
||||
status.error_code = 4;
|
||||
status.message = "Fail to upload snapshot to nextcloud (Status code: " + res.statusCode + ") !"
|
||||
|
Loading…
Reference in New Issue
Block a user