Merge pull request #20 from kicker334/patch-3

Test for issue #8
This commit is contained in:
Sébastien Clément 2020-08-13 10:44:05 +02:00 committed by GitHub
commit 669d49eb89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -141,7 +141,7 @@ router.post('/new-backup', function(req, res, next) {
res.send();
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.downloadSnapshot(id)
.then(() => {
@ -185,4 +185,4 @@ router.post('/clean-now', function(req, res, next){
module.exports = router;
module.exports = router;

View File

@ -124,7 +124,7 @@ class CronContainer {
if (status.status === "creating" || status.status === "upload" || status.status === "download")
return;
let name = 'Auto-' + moment().format('YYYY-MM-DD_HH:mm');
let name = 'Auto-' + moment().format('YYYY-MM-DD_HH-mm');
hassioApiTools.createNewBackup(name).then((id) => {
hassioApiTools.downloadSnapshot(id)
.then(() => {