fix(dokploy): filter notifications by admin

This commit is contained in:
Mauricio Siu
2024-11-04 10:10:52 -06:00
parent 8af5afbb6c
commit 6b7712e35f
11 changed files with 45 additions and 10 deletions

View File

@@ -49,6 +49,7 @@ export const runPostgresBackup = async (
projectName: project.name,
databaseType: "postgres",
type: "success",
adminId: project.adminId,
});
} catch (error) {
await sendDatabaseBackupNotifications({
@@ -58,6 +59,7 @@ export const runPostgresBackup = async (
type: "error",
// @ts-ignore
errorMessage: error?.message || "Error message not provided",
adminId: project.adminId,
});
throw error;