Attempt to fix error
Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
parent
f96c7a7e9d
commit
4b7722d5cd
@ -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)
|
||||
|
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user