You've already forked uptime-kuma
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user