Fix getById not returning USB policy fields
The getByIdHandler was missing usbPolicy, usbPolicyStatus, and usbPolicyError fields, causing the chip to always show "Permitido" instead of the actual policy value. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
4d158237c6
commit
7c5bc828cf
1 changed files with 3 additions and 0 deletions
|
|
@ -1143,6 +1143,9 @@ export async function getByIdHandler(
|
||||||
lastPostureAt,
|
lastPostureAt,
|
||||||
remoteAccess: machine.remoteAccess ?? null,
|
remoteAccess: machine.remoteAccess ?? null,
|
||||||
customFields: machine.customFields ?? [],
|
customFields: machine.customFields ?? [],
|
||||||
|
usbPolicy: machine.usbPolicy ?? null,
|
||||||
|
usbPolicyStatus: machine.usbPolicyStatus ?? null,
|
||||||
|
usbPolicyError: machine.usbPolicyError ?? null,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue