fix: remove declaracao duplicada de rawInventory
All checks were successful
All checks were successful
This commit is contained in:
parent
db23ea1901
commit
dc740cd89a
1 changed files with 1 additions and 1 deletions
|
|
@ -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<string, unknown>)["software"]
|
||||
if (Array.isArray(softwareArray) && softwareArray.length > 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue