From 0dda6ae744232e508744250ab0a09f353bb3ee58 Mon Sep 17 00:00:00 2001 From: Blake Matthes Date: Mon, 5 Jan 2026 10:27:09 -0600 Subject: [PATCH] fix(notifications): fixed a type in the alert being sent out only showing 1 alert instead of many --- LogisticsSupportTool_API_DOCS/environments/lst.bru | 4 ++-- .../notifications/controller/notifications/tooManyErrors.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/LogisticsSupportTool_API_DOCS/environments/lst.bru b/LogisticsSupportTool_API_DOCS/environments/lst.bru index 8784353..f3be0af 100644 --- a/LogisticsSupportTool_API_DOCS/environments/lst.bru +++ b/LogisticsSupportTool_API_DOCS/environments/lst.bru @@ -1,7 +1,7 @@ vars { - url: https://day1prod.alpla.net + url: https://bow1prod.alpla.net session_cookie: - urlv2: http://localhost:3000 + urlv2: http://usbow1vms006:3000 jwtV2: userID: } diff --git a/lstV2/server/services/notifications/controller/notifications/tooManyErrors.ts b/lstV2/server/services/notifications/controller/notifications/tooManyErrors.ts index 2834375..1c023bb 100644 --- a/lstV2/server/services/notifications/controller/notifications/tooManyErrors.ts +++ b/lstV2/server/services/notifications/controller/notifications/tooManyErrors.ts @@ -66,8 +66,8 @@ export default async function tooManyErrors(notifyData: any) { const emailSetup = { email: notifyData.emails, subject: `Alert! ${plant[0].value} has encountered ${ - errorData.length - } ${errorData.length > 1 ? "errors" : "error"} in the last ${notifyData.checkInterval} min`, + errorLogData.length + } ${errorLogData.length > 1 ? "errors" : "error"} in the last ${notifyData.checkInterval} min`, template: "tooManyErrors", context: { data: errorLogData,