revert: fix: pause child monitors if parent is paused

pull/5193/head
Peace 3 months ago
parent d1677300a4
commit 9eda25d0b6
No known key found for this signature in database
GPG Key ID: 0EF6B46E172B739F

@ -987,11 +987,6 @@ let needSetup = false;
await startMonitor(socket.userID, monitorID);
await server.sendUpdateMonitorIntoList(socket, monitorID);
const childrenIDs = await Monitor.getAllChildrenIDs(monitorID);
for (let childID of childrenIDs) {
await server.sendUpdateMonitorIntoList(socket, childID);
}
callback({
ok: true,
msg: "successResumed",
@ -1012,11 +1007,6 @@ let needSetup = false;
await pauseMonitor(socket.userID, monitorID);
await server.sendUpdateMonitorIntoList(socket, monitorID);
const childrenIDs = await Monitor.getAllChildrenIDs(monitorID);
for (let childID of childrenIDs) {
await server.sendUpdateMonitorIntoList(socket, childID);
}
callback({
ok: true,
msg: "successPaused",

Loading…
Cancel
Save