mirror of
https://github.com/Sebclem/hassio-nextcloud-backup.git
synced 2024-11-22 09:12:58 +01:00
Update api.js
This commit is contained in:
parent
f273b3d43e
commit
314a194368
@ -141,7 +141,7 @@ router.post('/new-backup', function(req, res, next) {
|
|||||||
res.send();
|
res.send();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let name = 'Manual-' + moment().format('YYYY-MM-DD_HH:mm');
|
let name = 'Manual-' + moment().format('YYYY-MM-DD_HH-mm');
|
||||||
hassioApiTools.createNewBackup(name).then((id) => {
|
hassioApiTools.createNewBackup(name).then((id) => {
|
||||||
hassioApiTools.downloadSnapshot(id)
|
hassioApiTools.downloadSnapshot(id)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
@ -185,4 +185,4 @@ router.post('/clean-now', function(req, res, next){
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
module.exports = router;
|
module.exports = router;
|
||||||
|
Loading…
Reference in New Issue
Block a user