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);
|
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)
|
||||||
|
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user