mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
fix: default notification (#233)
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user