feat: show unpaired device names on transactions

This commit is contained in:
Rafael Taranto 2025-03-27 12:30:27 +00:00
parent ca68fdd0a2
commit 0caa5cbc9a
10 changed files with 96 additions and 90 deletions

View file

@ -129,8 +129,6 @@ function getMachineNames (config) {
.then(([rawMachines, pings, events, config, heartbeat, performance]) => {
const mergeByDeviceId = (x, y) => _.values(_.merge(_.keyBy('deviceId', x), _.keyBy('deviceId', y)))
const machines = mergeByDeviceId(mergeByDeviceId(rawMachines, heartbeat), performance)
console.log('machines', machines)
console.log(machines.map(addName(pings, events, config)))
return machines.map(addName(pings, events, config))
})