From 6651f83da8cfef77502e803d2a34d845223b9370 Mon Sep 17 00:00:00 2001 From: Blake Matthes Date: Thu, 5 Jun 2025 01:26:17 -0500 Subject: [PATCH] fix(notify): fix for scac code when there is more characters after the split --- .../controller/notifications/tiFullFlow/scacCodeCheck.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/services/notifications/controller/notifications/tiFullFlow/scacCodeCheck.ts b/server/services/notifications/controller/notifications/tiFullFlow/scacCodeCheck.ts index 2167484..75840d6 100644 --- a/server/services/notifications/controller/notifications/tiFullFlow/scacCodeCheck.ts +++ b/server/services/notifications/controller/notifications/tiFullFlow/scacCodeCheck.ts @@ -23,7 +23,8 @@ export const scacCheck = async (data: any) => { ? `${data[0].remark .split(",")[0] .split(":")[1] - ?.toUpperCase()}` + ?.toUpperCase() + .slice(0, 4)}` : `` }