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