From 7fb55b8875a79f7314a514112b454a7480e91e1d Mon Sep 17 00:00:00 2001 From: Ponkhy Date: Thu, 23 Sep 2021 17:31:01 +0200 Subject: [PATCH] Fixed issues --- server/server.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/server.js b/server/server.js index 27d07378b..a19169063 100644 --- a/server/server.js +++ b/server/server.js @@ -26,6 +26,8 @@ debug("Importing http-graceful-shutdown"); const gracefulShutdown = require("http-graceful-shutdown"); debug("Importing prometheus-api-metrics"); const prometheusAPIMetrics = require("prometheus-api-metrics"); +debug("Importing compare-versions"); +const compareVersions = require("compare-versions"); debug("Importing 2FA Modules"); const notp = require("notp"); @@ -944,10 +946,11 @@ exports.entryPage = "dashboard"; socket.on("uploadBackup", async (uploadedJSON, importHandle, callback) => { try { checkLogin(socket) - console.log(`Importing Backup, User ID: ${socket.userID}, Version: ${backupData.version}`) let backupData = JSON.parse(uploadedJSON); + console.log(`Importing Backup, User ID: ${socket.userID}, Version: ${backupData.version}`) + let notificationListData = backupData.notificationList; let monitorListData = backupData.monitorList;