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 {
|
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:
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user