mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-27 16:54:04 +00:00
revert: fix: pause child monitors if parent is paused
This commit is contained in:
parent
d1677300a4
commit
9eda25d0b6
1 changed files with 0 additions and 10 deletions
|
@ -987,11 +987,6 @@ let needSetup = false;
|
||||||
await startMonitor(socket.userID, monitorID);
|
await startMonitor(socket.userID, monitorID);
|
||||||
await server.sendUpdateMonitorIntoList(socket, monitorID);
|
await server.sendUpdateMonitorIntoList(socket, monitorID);
|
||||||
|
|
||||||
const childrenIDs = await Monitor.getAllChildrenIDs(monitorID);
|
|
||||||
for (let childID of childrenIDs) {
|
|
||||||
await server.sendUpdateMonitorIntoList(socket, childID);
|
|
||||||
}
|
|
||||||
|
|
||||||
callback({
|
callback({
|
||||||
ok: true,
|
ok: true,
|
||||||
msg: "successResumed",
|
msg: "successResumed",
|
||||||
|
@ -1012,11 +1007,6 @@ let needSetup = false;
|
||||||
await pauseMonitor(socket.userID, monitorID);
|
await pauseMonitor(socket.userID, monitorID);
|
||||||
await server.sendUpdateMonitorIntoList(socket, monitorID);
|
await server.sendUpdateMonitorIntoList(socket, monitorID);
|
||||||
|
|
||||||
const childrenIDs = await Monitor.getAllChildrenIDs(monitorID);
|
|
||||||
for (let childID of childrenIDs) {
|
|
||||||
await server.sendUpdateMonitorIntoList(socket, childID);
|
|
||||||
}
|
|
||||||
|
|
||||||
callback({
|
callback({
|
||||||
ok: true,
|
ok: true,
|
||||||
msg: "successPaused",
|
msg: "successPaused",
|
||||||
|
|
Loading…
Reference in a new issue