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

@@ -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,