fix: use spex batch

This commit is contained in:
Nikola Ubavic 2021-11-29 14:05:10 +01:00
parent 1b94b5db42
commit 30195e0ea6

View file

@ -35,7 +35,7 @@ function unpair (deviceId) {
const q2 = t.none(`DELETE FROM machine_pings WHERE device_id=$1`, [deviceId])
const q3 = t.none(`DELETE FROM machine_network_heartbeat WHERE device_id=$1`, [deviceId])
const q4 = t.none(`DELETE FROM machine_network_performance WHERE device_id=$1`, [deviceId])
return Promise.all([q1, q2, q3, q4])
return t.batch([q1, q2, q3, q4])
})
)
}