refactor(notify): changed to only allow max 100 errors in the email

This commit is contained in:
2026-02-16 09:38:31 -06:00
parent 29b3be41a1
commit b96c546ed3

View File

@@ -70,7 +70,7 @@ export default async function tooManyErrors(notifyData: any) {
} ${errorLogData.length > 1 ? "errors" : "error"} in the last ${notifyData.checkInterval} min`,
template: "tooManyErrors",
context: {
data: errorLogData.splice(0, 1000),
data: errorLogData.slice(0, 100),
count: notifyData.notifiySettings.errorCount,
time: notifyData.checkInterval,
},