fix(notifications): fixed a type in the alert being sent out only showing 1 alert instead of many
This commit is contained in:
@@ -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:
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user