1
0
mirror of https://github.com/louislam/uptime-kuma.git synced 2025-11-29 23:07:33 +02:00

perf: option to only get ids of active children

This commit is contained in:
Peace
2024-10-17 17:16:08 +02:00
parent 0a479ecb50
commit ec2cebc5df
2 changed files with 22 additions and 2 deletions

View File

@@ -1752,7 +1752,7 @@ async function startMonitor(userID, monitorID) {
userID,
]);
const childrenIDs = await Monitor.getAllChildrenIDs(monitorID);
const childrenIDs = await Monitor.getAllChildrenIDs(monitorID, true);
const monitorIDs = [ monitorID, ...childrenIDs ];
let monitors = await R.find("monitor", ` id IN (${monitorIDs.map((_) => "?").join(",")})`, monitorIDs);