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`,
|
} ${errorLogData.length > 1 ? "errors" : "error"} in the last ${notifyData.checkInterval} min`,
|
||||||
template: "tooManyErrors",
|
template: "tooManyErrors",
|
||||||
context: {
|
context: {
|
||||||
data: errorLogData.splice(0, 1000),
|
data: errorLogData.slice(0, 100),
|
||||||
count: notifyData.notifiySettings.errorCount,
|
count: notifyData.notifiySettings.errorCount,
|
||||||
time: notifyData.checkInterval,
|
time: notifyData.checkInterval,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user