From 39dd93edb53eb7746a48b7b2ed72d155dab71fbc Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Fri, 2 Jun 2023 00:48:44 +0100 Subject: [PATCH] Remove 'publicStops' part of returning train data Signed-off-by: Fred Boniface --- src/services/trainService.services.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/services/trainService.services.js b/src/services/trainService.services.js index f927814..9f5b1a9 100644 --- a/src/services/trainService.services.js +++ b/src/services/trainService.services.js @@ -25,7 +25,6 @@ async function findByHeadcodeToday(headcode) { let tiplocList = await getPublicStops(trainData[trainService]['stops']); const pisDetail = await pis.findByTiplocArray(tiplocList); trainData[trainService]['pis'] = pisDetail?.[0]?.['code'] ?? 'None'; - trainData[trainService]['publicStops'] = tiplocList; preparedData.push(trainData[trainService]); } return preparedData;