update 1
This commit is contained in:
@ -64,10 +64,11 @@ async function commitMessage(now, logDevice) {
|
|||||||
|
|
||||||
if (["location"].includes(logDevice.action)) {
|
if (["location"].includes(logDevice.action)) {
|
||||||
// console.log(logDevice.device_id + " : 1")
|
// console.log(logDevice.device_id + " : 1")
|
||||||
const lastHeartbeatOrAlarm =
|
const lastHeartbeatOrAlarm = []
|
||||||
await GpsTracksModels.get2LastHeartbeatOrAlarm(
|
// const lastHeartbeatOrAlarm =
|
||||||
logDevice.device_id,
|
// await GpsTracksModels.get2LastHeartbeatOrAlarm(
|
||||||
)
|
// logDevice.device_id,
|
||||||
|
// )
|
||||||
if (lastHeartbeatOrAlarm.length > 0) {
|
if (lastHeartbeatOrAlarm.length > 0) {
|
||||||
logDevice.ignition = lastHeartbeatOrAlarm[0].ignition
|
logDevice.ignition = lastHeartbeatOrAlarm[0].ignition
|
||||||
logDevice.stts_gps = lastHeartbeatOrAlarm[0].stts_gps
|
logDevice.stts_gps = lastHeartbeatOrAlarm[0].stts_gps
|
||||||
|
|||||||
Reference in New Issue
Block a user