Remove 'publicStops' part of returning train data
Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
parent
524e9b271d
commit
39dd93edb5
@ -25,7 +25,6 @@ async function findByHeadcodeToday(headcode) {
|
|||||||
let tiplocList = await getPublicStops(trainData[trainService]['stops']);
|
let tiplocList = await getPublicStops(trainData[trainService]['stops']);
|
||||||
const pisDetail = await pis.findByTiplocArray(tiplocList);
|
const pisDetail = await pis.findByTiplocArray(tiplocList);
|
||||||
trainData[trainService]['pis'] = pisDetail?.[0]?.['code'] ?? 'None';
|
trainData[trainService]['pis'] = pisDetail?.[0]?.['code'] ?? 'None';
|
||||||
trainData[trainService]['publicStops'] = tiplocList;
|
|
||||||
preparedData.push(trainData[trainService]);
|
preparedData.push(trainData[trainService]);
|
||||||
}
|
}
|
||||||
return preparedData;
|
return preparedData;
|
||||||
|
Loading…
Reference in New Issue
Block a user