From 4b7722d5cdf82caaf3f45079878ede768a9a7bb4 Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Mon, 7 Aug 2023 12:27:48 +0100 Subject: [PATCH] Attempt to fix error Signed-off-by: Fred Boniface --- src/services/ldb.services.js | 1 - src/utils/translators/ldb/staffStation.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/services/ldb.services.js b/src/services/ldb.services.js index 4d1ee33..b4709ec 100644 --- a/src/services/ldb.services.js +++ b/src/services/ldb.services.js @@ -67,7 +67,6 @@ async function arrDepBoardStaff(CRS) { const api = new ldb(ldbsvKey,true); console.time(`Fetch Staff LDB for ${CRS.toUpperCase()}`); const result = await api.call('GetArrivalDepartureBoardByCRS',options,false,false); - console.log(`Upstream API Size: ${resultSize}`) console.timeEnd(`Fetch Staff LDB for ${CRS.toUpperCase()}`) try { const _staffLdb = staffStationTransform(result) diff --git a/src/utils/translators/ldb/staffStation.ts b/src/utils/translators/ldb/staffStation.ts index f470768..79c6679 100644 --- a/src/utils/translators/ldb/staffStation.ts +++ b/src/utils/translators/ldb/staffStation.ts @@ -43,7 +43,7 @@ function transformNrcc(input: any): NrccMessage[] | undefined { for (const item of messages) { let message: NrccMessage = { severity: item?.severity, - xhtmlMessage: removeNewlineAndPTag(item?.xhtmlMessage) + xhtmlMessage: removeNewlineAndPTag(item?.xhtmlMessage) || undefined } output.push(message) }