fix: default notification (#233)

This commit is contained in:
Charles GTE
2026-03-28 19:00:50 +01:00
committed by GitHub
parent 2f77714994
commit d8677d74a7
+2 -1
View File
@@ -23,7 +23,7 @@ export async function sendNotificationsBackupRestore(database: DatabaseWith, eve
const policiesToUse = (database.alertPolicies && database.alertPolicies.length > 0)
? database.alertPolicies.filter(policy => policy.enabled && policy.eventKinds.includes(event))
: defaultPolicy;
: defaultPolicy.filter(policy => policy.eventKinds.includes(event));
if (!policiesToUse || policiesToUse.length === 0) {
return [];
@@ -60,6 +60,7 @@ export async function sendNotificationsBackupRestore(database: DatabaseWith, eve
success_restore: `Restore Notification`,
weekly_report: `Weekly Report Notification`,
error_health_agent: "Health Agent Notification",
error_health_database: "Health Database Notification",
};
const payload: EventPayload = {