refactor: clarify machine pings object construction
This commit is contained in:
parent
f49b8f4f46
commit
dec172576c
1 changed files with 1 additions and 3 deletions
|
|
@ -107,9 +107,7 @@ function buildAlerts(pings, balances, events, devices) {
|
|||
}
|
||||
|
||||
function checkPings(devices) {
|
||||
const deviceIds = _.map('deviceId', devices)
|
||||
const pings = _.map(utils.checkPing, devices)
|
||||
return _.zipObject(deviceIds)(pings)
|
||||
return Object.fromEntries(devices.map(d => [d.deviceId, utils.checkPing(d)]))
|
||||
}
|
||||
|
||||
function checkStuckScreen(deviceEvents, machine) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue