feat(site): implement dynamic site selection dropdown in sidebar and enable multi-site monitoring

This commit is contained in:
Rafif-Riqullah-Siregar committed 2026-07-13 16:57:45 +07:00
1 parent be6bc14190
commit 4882108068
125 files changed
+5666 -4305

No files matched your search

+1 -1
View File
@@ -29,7 +29,7 @@ module.exports = async function agentDetailsHandler(req, res, helpers) {
Summary.findOne(baseQuery).sort({ timestamp: -1 }),
DeviceStat.find(baseQuery).sort({ timestamp: -1, download: -1 }).lean(),
Threat.find(baseQuery).sort({ detected_at: -1 }).lean(),
Flow.find(baseQuery).sort({ timestamp: -1 }).lean(),
Flow.find(baseQuery).sort({ timestamp: -1 }).limit(2000).lean(),
AppStat.find(baseQuery).sort({ timestamp: -1, download: -1 }).lean(),
Event.find(baseQuery).sort({ timestamp: -1 }).lean(),
getCustomLabelsMap()