From 7c5bc828cfa18565d6cb84c050110470a147bd1a Mon Sep 17 00:00:00 2001 From: rever-tecnologia Date: Fri, 5 Dec 2025 10:06:18 -0300 Subject: [PATCH] Fix getById not returning USB policy fields MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- convex/machines.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/convex/machines.ts b/convex/machines.ts index 58a9913..3ceed28 100644 --- a/convex/machines.ts +++ b/convex/machines.ts @@ -1143,6 +1143,9 @@ export async function getByIdHandler( lastPostureAt, remoteAccess: machine.remoteAccess ?? null, customFields: machine.customFields ?? [], + usbPolicy: machine.usbPolicy ?? null, + usbPolicyStatus: machine.usbPolicyStatus ?? null, + usbPolicyError: machine.usbPolicyError ?? null, } }