Add - but not implement - calculateLength()
Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
parent
4a1b8d12f8
commit
1c0081b570
@ -68,6 +68,7 @@ function transformTrainServices(input: any): TrainServices[] {
|
|||||||
serviceIsSupressed: service?.serviceIsSupressed,
|
serviceIsSupressed: service?.serviceIsSupressed,
|
||||||
origin: transformLocation(service?.origin),
|
origin: transformLocation(service?.origin),
|
||||||
destination: transformLocation(service?.destination),
|
destination: transformLocation(service?.destination),
|
||||||
|
length: calculateLength(service),
|
||||||
isCancelled: service?.isCancelled,
|
isCancelled: service?.isCancelled,
|
||||||
cancelReason: service?.cancelReason,
|
cancelReason: service?.cancelReason,
|
||||||
delayReason: service?.delayReason,
|
delayReason: service?.delayReason,
|
||||||
@ -103,6 +104,11 @@ function transformLocation(input: any): ServiceLocation[] {
|
|||||||
return output
|
return output
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function calculateLength(input: TrainServices): number | undefined {
|
||||||
|
console.log(input);
|
||||||
|
return undefined
|
||||||
|
}
|
||||||
|
|
||||||
function transformUnspecifiedDateTime(input: string): Date | undefined {
|
function transformUnspecifiedDateTime(input: string): Date | undefined {
|
||||||
console.debug(`staffStation.transformUnspecifiedDateTime running`)
|
console.debug(`staffStation.transformUnspecifiedDateTime running`)
|
||||||
if (!input) {
|
if (!input) {
|
||||||
|
Loading…
Reference in New Issue
Block a user