Fix for events init
This commit is contained in:
parent
33a6ea99de
commit
8d9fd40766
@ -4,6 +4,7 @@ class Event {
|
|||||||
longitude
|
longitude
|
||||||
speed
|
speed
|
||||||
direction
|
direction
|
||||||
|
address
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = Event;
|
module.exports = Event;
|
||||||
@ -51,6 +51,7 @@ class Vehicle {
|
|||||||
v.isRightWheel = tech.wheel.position != 'LEFT';
|
v.isRightWheel = tech.wheel.position != 'LEFT';
|
||||||
v.isJapanese = report.is_japanese_vehicle;
|
v.isJapanese = report.is_japanese_vehicle;
|
||||||
v.addedDate = Date.now();
|
v.addedDate = Date.now();
|
||||||
|
v.events = [];
|
||||||
|
|
||||||
return v;
|
return v;
|
||||||
}
|
}
|
||||||
@ -86,6 +87,7 @@ class Vehicle {
|
|||||||
});
|
});
|
||||||
|
|
||||||
v.addedDate = Date.now();
|
v.addedDate = Date.now();
|
||||||
|
v.events = [];
|
||||||
|
|
||||||
return v;
|
return v;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user