From 32d011fc989311cb76a11fed2a6c03e6d301ba31 Mon Sep 17 00:00:00 2001 From: Blake Matthes Date: Wed, 21 May 2025 20:17:24 -0500 Subject: [PATCH] fix(ti): added some catches for the remark just being there and incorrect scac --- .../notifications/tiFullFlow/scacCodeCheck.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/server/services/notifications/controller/notifications/tiFullFlow/scacCodeCheck.ts b/server/services/notifications/controller/notifications/tiFullFlow/scacCodeCheck.ts index 7c088e3..a22ff56 100644 --- a/server/services/notifications/controller/notifications/tiFullFlow/scacCodeCheck.ts +++ b/server/services/notifications/controller/notifications/tiFullFlow/scacCodeCheck.ts @@ -5,15 +5,15 @@ export const scacCheck = async (data: any) => { "info", "ti", "notify", - `Checking if ${data[0].addressAlias} has scac: ${ - data[0].remark.split(",")[0] ? "there was one" : "no scac" - }` + `Checking if ${data[0].addressAlias} has remark: ${data[0].remark}` ); const priceSheet = ` ${ @@ -21,7 +21,7 @@ export const scacCheck = async (data: any) => { ? `${data[0].remark .split(",")[0] .split(":")[1] - .toUpperCase()}` + ?.toUpperCase()}` : `` }