Attempt to fix error

Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
Fred Boniface 2023-08-07 12:27:48 +01:00
parent f96c7a7e9d
commit 4b7722d5cd
2 changed files with 1 additions and 2 deletions

View File

@ -67,7 +67,6 @@ async function arrDepBoardStaff(CRS) {
const api = new ldb(ldbsvKey,true); const api = new ldb(ldbsvKey,true);
console.time(`Fetch Staff LDB for ${CRS.toUpperCase()}`); console.time(`Fetch Staff LDB for ${CRS.toUpperCase()}`);
const result = await api.call('GetArrivalDepartureBoardByCRS',options,false,false); const result = await api.call('GetArrivalDepartureBoardByCRS',options,false,false);
console.log(`Upstream API Size: ${resultSize}`)
console.timeEnd(`Fetch Staff LDB for ${CRS.toUpperCase()}`) console.timeEnd(`Fetch Staff LDB for ${CRS.toUpperCase()}`)
try { try {
const _staffLdb = staffStationTransform(result) const _staffLdb = staffStationTransform(result)

View File

@ -43,7 +43,7 @@ function transformNrcc(input: any): NrccMessage[] | undefined {
for (const item of messages) { for (const item of messages) {
let message: NrccMessage = { let message: NrccMessage = {
severity: item?.severity, severity: item?.severity,
xhtmlMessage: removeNewlineAndPTag(item?.xhtmlMessage) xhtmlMessage: removeNewlineAndPTag(item?.xhtmlMessage) || undefined
} }
output.push(message) output.push(message)
} }