Remove 'publicStops' part of returning train data

Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
Fred Boniface 2023-06-02 00:48:44 +01:00
parent 524e9b271d
commit 39dd93edb5

View File

@ -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;