From ae1a467c974e90203ea29c64adb6c89d6bad837b Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Mon, 7 Aug 2023 11:27:44 +0100 Subject: [PATCH] Add console.log for _staffLDB (Transformed data) Signed-off-by: Fred Boniface --- src/services/ldb.services.js | 1 + src/utils/translators/ldb/staffStation.ts | 5 ----- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/services/ldb.services.js b/src/services/ldb.services.js index 3e7cc21..b4709ec 100644 --- a/src/services/ldb.services.js +++ b/src/services/ldb.services.js @@ -71,6 +71,7 @@ async function arrDepBoardStaff(CRS) { try { const _staffLdb = staffStationTransform(result) console.log("Transformation Test Successful") + console.log(JSON.stringify(_staffLdb)) } catch (err) { console.log("Transformation Test Failed: " + err) } diff --git a/src/utils/translators/ldb/staffStation.ts b/src/utils/translators/ldb/staffStation.ts index aeab1c6..99d5ad8 100644 --- a/src/utils/translators/ldb/staffStation.ts +++ b/src/utils/translators/ldb/staffStation.ts @@ -29,12 +29,10 @@ export function transform(input: any): StaffLdb | null { } function transformDateTime(input: string): Date { - console.debug(`staffStation.transformDateTime Input: ${input}`) return new Date(input) } function transformNrcc(input: any): NrccMessage[] { - console.debug(`staffStations.transformNrcc: Running`) let output: NrccMessage[] = [] let messages = input if (!Array.isArray(input?.message)) { @@ -51,7 +49,6 @@ function transformNrcc(input: any): NrccMessage[] { } function transformTrainServices(input: any): TrainServices[] { - console.debug(`staffStation.transformTrainServices running`) let services: any = input?.service let output: TrainServices[] = [] if (services === undefined) { @@ -91,7 +88,6 @@ function transformTrainServices(input: any): TrainServices[] { } function transformLocation(input: any): ServiceLocation[] { - console.debug(`staffStation.transformLocation running`) let output: ServiceLocation[] = [] let locations: any[] = input.location if (!Array.isArray(input.location)) { @@ -124,7 +120,6 @@ export function calculateLength(input: any): number | undefined { } function transformUnspecifiedDateTime(input: string): Date | undefined { - console.debug(`staffStation.transformUnspecifiedDateTime running`) if (!input) { return undefined }