mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-12-27 14:39:51 -08:00
Added uptime kuma version to backup file
This commit is contained in:
parent
c13cc62d3d
commit
2dd392e609
|
@ -556,10 +556,10 @@ let indexHTML = fs.readFileSync("./dist/index.html").toString();
|
||||||
try {
|
try {
|
||||||
checkLogin(socket)
|
checkLogin(socket)
|
||||||
|
|
||||||
console.log(`Importing Backup, User ID: ${socket.userID}`)
|
console.log(`Importing Backup, User ID: ${socket.userID}, Version: ${uploadedJSON[0]}`)
|
||||||
|
|
||||||
let notificationList = uploadedJSON[0];
|
let notificationList = uploadedJSON[1];
|
||||||
let monitorList = uploadedJSON[1];
|
let monitorList = uploadedJSON[2];
|
||||||
|
|
||||||
monitorList = JSON.stringify(monitorList);
|
monitorList = JSON.stringify(monitorList);
|
||||||
monitorList = JSON.parse(monitorList);
|
monitorList = JSON.parse(monitorList);
|
||||||
|
|
|
@ -305,6 +305,7 @@ export default {
|
||||||
let time = dayjs().format("YYYY_MM_DD-hh_mm_ss");
|
let time = dayjs().format("YYYY_MM_DD-hh_mm_ss");
|
||||||
let fileName = `Uptime_Kuma_Backup_${time}.json`;
|
let fileName = `Uptime_Kuma_Backup_${time}.json`;
|
||||||
let exportData = {
|
let exportData = {
|
||||||
|
version: this.$root.info.version,
|
||||||
notificationList: this.$root.notificationList,
|
notificationList: this.$root.notificationList,
|
||||||
monitorList: this.$root.monitorList,
|
monitorList: this.$root.monitorList,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue