Paused monitors stay paused after import

This commit is contained in:
Ponkhy 2021-09-07 23:32:25 +02:00
parent 69a7c4dab4
commit 1ef4562905

View file

@ -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)