diff --git a/convex/machines.ts b/convex/machines.ts index cec2657..3ceed57 100644 --- a/convex/machines.ts +++ b/convex/machines.ts @@ -1091,7 +1091,7 @@ export const heartbeat = mutation({ // Processar softwares instalados (armazenados em tabela separada) // Os dados de software sao extraidos ANTES de sanitizar o inventory - const rawInventory = args.inventory ?? args.metadata?.inventory + // Usa rawInventory ja extraido anteriormente (linha ~1022) if (rawInventory && typeof rawInventory === "object") { const softwareArray = (rawInventory as Record)["software"] if (Array.isArray(softwareArray) && softwareArray.length > 0) {