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

View File

@ -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)
}