fix(notification): limited to 1000 max errors

This commit is contained in:
2026-02-13 15:59:38 -06:00
parent 6b669ccd9c
commit 10e9dc430c

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,
data: errorLogData.splice(0, 1000),
count: notifyData.notifiySettings.errorCount,
time: notifyData.checkInterval,
},