mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-09-08 22:58:17 +00:00
fix agent issues
This commit is contained in:
@@ -220,6 +220,15 @@ export class GlOperationsService {
|
||||
wagonAllocated,
|
||||
departedAt: departedAt ? new Date(departedAt).toISOString() : null,
|
||||
arrivedAt: arrivedAt ? new Date(arrivedAt).toISOString() : null,
|
||||
// The train's own actuals, kept separate from the booking's journey
|
||||
// above: a UI can say where the TRAIN is without implying this booking
|
||||
// has been unloaded (which is what the clearance gates key on).
|
||||
scheduleDepartedAt: schedule?.actualDepartureAt
|
||||
? new Date(schedule.actualDepartureAt).toISOString()
|
||||
: null,
|
||||
scheduleArrivedAt: schedule?.actualArrivalAt
|
||||
? new Date(schedule.actualArrivalAt).toISOString()
|
||||
: null,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user