refactor(notify): changed to only allow max 100 errors in the email
This commit is contained in:
@@ -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,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user