mirror of
https://github.com/Sebclem/hassio-nextcloud-backup.git
synced 2024-11-26 19:06:55 +01:00
Compare commits
1 Commits
74d287ebdf
...
d80d4b51ae
Author | SHA1 | Date | |
---|---|---|---|
|
d80d4b51ae |
@ -9,7 +9,7 @@
|
||||
"dependencies": {
|
||||
"@fortawesome/fontawesome-free": "6.1.2",
|
||||
"app-root-path": "3.0.0",
|
||||
"bootstrap": "5.1.3",
|
||||
"bootstrap": "5.2.0",
|
||||
"cookie-parser": "1.4.6",
|
||||
"cron": "2.1.0",
|
||||
"debug": "4.3.4",
|
||||
@ -22,7 +22,7 @@
|
||||
"luxon": "3.0.1",
|
||||
"morgan": "1.10.0",
|
||||
"webdav": "4.10.0",
|
||||
"winston": "3.9.0"
|
||||
"winston": "3.8.2"
|
||||
},
|
||||
"packageManager": "yarn@3.2.2"
|
||||
}
|
||||
|
@ -21,7 +21,7 @@ router.get("/formated-local-snap", function (req, res, next) {
|
||||
hassioApiTools.getSnapshots()
|
||||
.then((snaps) => {
|
||||
snaps.sort((a, b) => {
|
||||
return Date.parse(b.date) - Date.parse(a.date);
|
||||
return a.date < b.date ? 1 : -1
|
||||
});
|
||||
|
||||
res.render("localSnaps", { snaps: snaps, DateTime: DateTime });
|
||||
@ -43,7 +43,7 @@ router.get("/formated-backup-manual", function (req, res, next) {
|
||||
.getFolderContent(webdav.getConf().back_dir + pathTools.manual)
|
||||
.then((contents) => {
|
||||
contents.sort((a, b) => {
|
||||
return Date.parse(b.lastmod) - Date.parse(a.lastmod)
|
||||
return a.date < b.date ? 1 : -1
|
||||
});
|
||||
//TODO Remove this when bug is fixed, etag contain '"' at start and end ?
|
||||
for (let backup of contents) {
|
||||
@ -67,7 +67,7 @@ router.get("/formated-backup-auto", function (req, res, next) {
|
||||
.getFolderContent(url)
|
||||
.then((contents) => {
|
||||
contents.sort((a, b) => {
|
||||
return Date.parse(b.lastmod) - Date.parse(a.lastmod)
|
||||
return a.date < b.date ? 1 : -1
|
||||
});
|
||||
//TODO Remove this when bug is fixed, etag contain '"' at start and end ?
|
||||
for (let backup of contents) {
|
||||
|
@ -295,7 +295,7 @@ function clean() {
|
||||
return;
|
||||
}
|
||||
snaps.sort((a, b) => {
|
||||
return Date.parse(b.date) - Date.parse(a.date);
|
||||
return a.date < b.date ? 1 : -1
|
||||
});
|
||||
let toDel = snaps.slice(limit);
|
||||
for (let i of toDel) {
|
||||
|
@ -380,13 +380,12 @@ class WebdavTools {
|
||||
return new Promise((resolve, reject) => {
|
||||
this.getFolderContent(this.getConf().back_dir + pathTools.auto)
|
||||
.then(async (contents) => {
|
||||
|
||||
if (contents.length < limit) {
|
||||
resolve();
|
||||
return;
|
||||
}
|
||||
contents.sort((a, b) => {
|
||||
return Date.parse(b.lastmod) - Date.parse(a.lastmod)
|
||||
return a.date < b.date ? 1 : -1
|
||||
});
|
||||
|
||||
let toDel = contents.slice(limit);
|
||||
|
@ -197,12 +197,12 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"bootstrap@npm:5.1.3":
|
||||
version: 5.1.3
|
||||
resolution: "bootstrap@npm:5.1.3"
|
||||
"bootstrap@npm:5.2.0":
|
||||
version: 5.2.0
|
||||
resolution: "bootstrap@npm:5.2.0"
|
||||
peerDependencies:
|
||||
"@popperjs/core": ^2.10.2
|
||||
checksum: 301b5ed872efba061104cf22ac93568e3837867fb5527ab9326a51510fb752bd4883e1d488225c8be72f86d9d3a55ef5b166aa7fa62c2fdd077c3f05b65752f8
|
||||
"@popperjs/core": ^2.11.5
|
||||
checksum: 9dbfb5d26bbdac3e27a6b46cb7456cd4dd75ae3b48644737809885b8ea9c265d3359c4cdbf25a55bb7e5046f51e441557033ba21eeaf24ef8316bfbb3d420084
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@ -1095,7 +1095,7 @@ __metadata:
|
||||
dependencies:
|
||||
"@fortawesome/fontawesome-free": 6.1.2
|
||||
app-root-path: 3.0.0
|
||||
bootstrap: 5.1.3
|
||||
bootstrap: 5.2.0
|
||||
cookie-parser: 1.4.6
|
||||
cron: 2.1.0
|
||||
debug: 4.3.4
|
||||
@ -1108,7 +1108,7 @@ __metadata:
|
||||
luxon: 3.0.1
|
||||
morgan: 1.10.0
|
||||
webdav: 4.10.0
|
||||
winston: 3.9.0
|
||||
winston: 3.8.2
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
@ -1528,9 +1528,9 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"winston@npm:3.9.0":
|
||||
version: 3.9.0
|
||||
resolution: "winston@npm:3.9.0"
|
||||
"winston@npm:3.8.2":
|
||||
version: 3.8.2
|
||||
resolution: "winston@npm:3.8.2"
|
||||
dependencies:
|
||||
"@colors/colors": 1.5.0
|
||||
"@dabh/diagnostics": ^2.0.2
|
||||
@ -1543,7 +1543,7 @@ __metadata:
|
||||
stack-trace: 0.0.x
|
||||
triple-beam: ^1.3.0
|
||||
winston-transport: ^4.5.0
|
||||
checksum: 410f82b7a502106e7d93e62cd21d7e9bcfd37884d0d95921b12526d2fe163e654ec9cd39e18f9884fad5cf6506a45d07bd2519c1dc9c88e82f0f12b2ce9fa510
|
||||
checksum: f7b901798b92ab9e93c850110bf6e98500e9a0e762b62dab410cf928b2a4145533dfa6d3d2b24f7bf0dc94b53808d5bd28aaaeff9a4b43b89ea4c798cce308ea
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user