Add via field to staffLDB.TrainServices.Origin/Destination fields

Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
Fred Boniface 2023-08-07 10:28:21 +01:00
parent 4b2e7e99b8
commit 517ecba7b6
2 changed files with 4 additions and 1 deletions

View File

@ -31,7 +31,7 @@
"zlib": "^1.0.5" "zlib": "^1.0.5"
}, },
"devDependencies": { "devDependencies": {
"@owlboard/ts-types": "^0.0.6", "@owlboard/ts-types": "^0.0.7",
"@types/jest": "^29.5.3", "@types/jest": "^29.5.3",
"eslint": "^8.39.0", "eslint": "^8.39.0",
"jest": "^29.6.2", "jest": "^29.6.2",

View File

@ -99,6 +99,9 @@ function transformLocation(input: any): ServiceLocation[] {
tiploc: item?.tiploc, tiploc: item?.tiploc,
name: item?.locationName name: item?.locationName
} }
if (item?.via) {
location.via = item.via
}
output.push(location) output.push(location)
} }
return output return output