Fix: Add missing IP and MAC filtering logic in Devices page

This commit is contained in:
ypratama committed 2026-09-02 18:50:06 +07:00
1 parent 1bb67e99dd
commit a4dc705a3d
2 files changed
+9 -1

No files matched your search

+3 -1
View File
@@ -41,11 +41,13 @@ async function collectAllAgents() {
$set: {
uuid: a.uuid,
serial: a.serial || a.uuid,
label: a.label,
site_uuid: 'global', // Store globally
provisioned: a.provisioned ?? true,
activated: a.activated ?? false,
last_seen_at: a.last_seen_at ?? null,
},
$setOnInsert: {
label: a.label,
}
},
{ upsert: true, new: true }