chore: deprecate old migrations

This commit is contained in:
Rafael Taranto 2025-03-27 12:22:46 +00:00
parent f5ba3dbf4e
commit ca68fdd0a2
13 changed files with 15 additions and 2293 deletions

View file

@ -129,6 +129,8 @@ 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))
})