Temporary fix:
- Do not check 'operator' before PIS lookup - the timetable data does not yet contain the operator key Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
parent
27794feb41
commit
ea8dd65a8d
@ -20,7 +20,7 @@ async function findByHeadcodeToday(headcode) {
|
|||||||
let trainData = await parseTrains(queryData);
|
let trainData = await parseTrains(queryData);
|
||||||
let preparedData = [];
|
let preparedData = [];
|
||||||
for (let trainService in trainData) {
|
for (let trainService in trainData) {
|
||||||
if (pis.supported.includes(trainData?.operator)) {
|
if (trainData /* CONDTION NEEDS CHANGIN WHEN DBMAN UPDATED /*pis.supported.includes(trainData?.operator)*/) {
|
||||||
// Search for PIS Code for each service
|
// Search for PIS Code for each service
|
||||||
const tiplocList = await getPublicStops(trainData[trainService]['stops']);
|
const tiplocList = await getPublicStops(trainData[trainService]['stops']);
|
||||||
//console.log(tiplocList.length); console.log(tiplocList);
|
//console.log(tiplocList.length); console.log(tiplocList);
|
||||||
|
Loading…
Reference in New Issue
Block a user