From 1ef45629053b150df6d5ccd6851c7934cc28e869 Mon Sep 17 00:00:00 2001 From: Ponkhy Date: Tue, 7 Sep 2021 23:32:25 +0200 Subject: [PATCH] Paused monitors stay paused after import --- server/server.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/server/server.js b/server/server.js index 31efc9bbb..bfebb89fc 100644 --- a/server/server.js +++ b/server/server.js @@ -645,7 +645,11 @@ let indexHTML = fs.readFileSync("./dist/index.html").toString(); await updateMonitorNotification(bean.id, notificationIDList) - await startMonitor(socket.userID, bean.id); + if (monitorList[i].active == 1) { + await startMonitor(socket.userID, bean.id); + } else { + await pauseMonitor(socket.userID, bean.id); + } } await sendNotificationList(socket)