fix(notifications): fixed a type in the alert being sent out only showing 1 alert instead of many

This commit is contained in:
2026-01-05 10:27:09 -06:00
parent 1b59cdd3a4
commit 0dda6ae744
2 changed files with 4 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
vars { vars {
url: https://day1prod.alpla.net url: https://bow1prod.alpla.net
session_cookie: session_cookie:
urlv2: http://localhost:3000 urlv2: http://usbow1vms006:3000
jwtV2: jwtV2:
userID: userID:
} }

View File

@@ -66,8 +66,8 @@ export default async function tooManyErrors(notifyData: any) {
const emailSetup = { const emailSetup = {
email: notifyData.emails, email: notifyData.emails,
subject: `Alert! ${plant[0].value} has encountered ${ subject: `Alert! ${plant[0].value} has encountered ${
errorData.length errorLogData.length
} ${errorData.length > 1 ? "errors" : "error"} in the last ${notifyData.checkInterval} min`, } ${errorLogData.length > 1 ? "errors" : "error"} in the last ${notifyData.checkInterval} min`,
template: "tooManyErrors", template: "tooManyErrors",
context: { context: {
data: errorLogData, data: errorLogData,