chore: remove debug logs do heartbeat
Some checks failed
CI/CD Web + Desktop / Deploy Convex functions (push) Blocked by required conditions
CI/CD Web + Desktop / Detect changes (push) Successful in 4s
CI/CD Web + Desktop / Deploy (VPS Linux) (push) Has been cancelled
Quality Checks / Lint, Test and Build (push) Has been cancelled
Some checks failed
CI/CD Web + Desktop / Deploy Convex functions (push) Blocked by required conditions
CI/CD Web + Desktop / Detect changes (push) Successful in 4s
CI/CD Web + Desktop / Deploy (VPS Linux) (push) Has been cancelled
Quality Checks / Lint, Test and Build (push) Has been cancelled
This commit is contained in:
parent
dc740cd89a
commit
ad5e26f211
1 changed files with 0 additions and 14 deletions
|
|
@ -1025,20 +1025,6 @@ export const heartbeat = mutation({
|
||||||
const incomingInventoryHash = hashJson(sanitizedInventory)
|
const incomingInventoryHash = hashJson(sanitizedInventory)
|
||||||
const currentInventoryHash = typeof currentMetadata["inventoryHash"] === "string" ? currentMetadata["inventoryHash"] : null
|
const currentInventoryHash = typeof currentMetadata["inventoryHash"] === "string" ? currentMetadata["inventoryHash"] : null
|
||||||
|
|
||||||
// DEBUG: log para verificar dados extended
|
|
||||||
if (sanitizedInventory?.["extended"]) {
|
|
||||||
console.log("[heartbeat] extended keys:", Object.keys(sanitizedInventory["extended"] as object))
|
|
||||||
const win = (sanitizedInventory["extended"] as Record<string, unknown>)?.["windows"] as Record<string, unknown> | undefined
|
|
||||||
if (win) {
|
|
||||||
console.log("[heartbeat] windows keys:", Object.keys(win))
|
|
||||||
if (win["bootInfo"]) {
|
|
||||||
console.log("[heartbeat] bootInfo:", JSON.stringify(win["bootInfo"]))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
console.log("[heartbeat] no extended in sanitizedInventory, source:", args.inventory ? "args.inventory" : incomingMeta?.["inventory"] ? "metadata.inventory" : "none")
|
|
||||||
}
|
|
||||||
|
|
||||||
if (sanitizedInventory && incomingInventoryHash && incomingInventoryHash !== currentInventoryHash) {
|
if (sanitizedInventory && incomingInventoryHash && incomingInventoryHash !== currentInventoryHash) {
|
||||||
metadataPatch.inventory = mergeInventory(currentInventory, sanitizedInventory)
|
metadataPatch.inventory = mergeInventory(currentInventory, sanitizedInventory)
|
||||||
metadataPatch.inventoryHash = incomingInventoryHash
|
metadataPatch.inventoryHash = incomingInventoryHash
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue