Fix: Add missing IP and MAC filtering logic in Devices page
This commit is contained in:
1 parent
1bb67e99dd
commit
a4dc705a3d
2 files changed
+9
-1
No files matched your search
+3
-1
@@ -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 }
|
||||
|
||||
Reference in new issue
Block a user