fix: use active instead of isActive in uploadBackup

This commit is contained in:
Peace 2023-02-01 23:39:42 +01:00
parent 2c581ade90
commit 9446c2d102
No known key found for this signature in database
GPG Key ID: 0EF6B46E172B739F

View File

@ -1409,7 +1409,7 @@ let needSetup = false;
await updateMonitorNotification(bean.id, notificationIDList);
// If monitor was active start it immediately, otherwise pause it
if (monitorListData[i].isActive === 1) {
if (monitorListData[i].active === 1) {
await startMonitor(socket.userID, bean.id);
} else {
await pauseMonitor(socket.userID, bean.id);