diff --git a/apps/dokploy/components/dashboard/settings/notifications/handle-notifications.tsx b/apps/dokploy/components/dashboard/settings/notifications/handle-notifications.tsx index cc5946d5a..28d762c1c 100644 --- a/apps/dokploy/components/dashboard/settings/notifications/handle-notifications.tsx +++ b/apps/dokploy/components/dashboard/settings/notifications/handle-notifications.tsx @@ -266,8 +266,10 @@ export const HandleNotifications = ({ notificationId }: Props) => { api.notification.testGotifyConnection.useMutation(); const { mutateAsync: testNtfyConnection, isPending: isLoadingNtfy } = api.notification.testNtfyConnection.useMutation(); - const { mutateAsync: testMattermostConnection, isPending: isLoadingMattermost } = - api.notification.testMattermostConnection.useMutation(); + const { + mutateAsync: testMattermostConnection, + isPending: isLoadingMattermost, + } = api.notification.testMattermostConnection.useMutation(); const { mutateAsync: testLarkConnection, isPending: isLoadingLark } = api.notification.testLarkConnection.useMutation(); const { mutateAsync: testTeamsConnection, isPending: isLoadingTeams } = diff --git a/packages/server/src/utils/notifications/server-threshold.ts b/packages/server/src/utils/notifications/server-threshold.ts index a669a13f7..bcabf2cc3 100644 --- a/packages/server/src/utils/notifications/server-threshold.ts +++ b/packages/server/src/utils/notifications/server-threshold.ts @@ -51,8 +51,16 @@ export const sendServerThresholdNotifications = async ( const typeColor = 0xff0000; // Rojo para indicar alerta for (const notification of notificationList) { - const { discord, telegram, slack, mattermost, custom, lark, pushover, teams } = - notification; + const { + discord, + telegram, + slack, + mattermost, + custom, + lark, + pushover, + teams, + } = notification; try { if (discord) { diff --git a/packages/server/src/utils/notifications/volume-backup.ts b/packages/server/src/utils/notifications/volume-backup.ts index 3364efd59..7aaaee8ba 100644 --- a/packages/server/src/utils/notifications/volume-backup.ts +++ b/packages/server/src/utils/notifications/volume-backup.ts @@ -225,7 +225,9 @@ export const sendVolumeBackupNotifications = async ({ const errorMsg = isError ? `\n\nError:\n
${errorMessage}
` : ""; - const sizeInfo = backupSize ? `\nBackup Size: ${backupSize}` : ""; + const sizeInfo = backupSize + ? `\nBackup Size: ${backupSize}` + : ""; const messageText = `${statusEmoji} Volume Backup ${typeStatus}\n\nProject: ${projectName}\nApplication: ${applicationName}\nVolume Name: ${volumeName}\nService Type: ${serviceType}${sizeInfo}\nDate: ${format(date, "PP")}\nTime: ${format(date, "pp")}${isError ? errorMsg : ""}`; @@ -449,7 +451,10 @@ export const sendVolumeBackupNotifications = async ({ { name: "Volume Name", value: volumeName }, { name: "Service Type", value: serviceType }, { name: "Date", value: format(date, "PP pp") }, - { name: "Status", value: type === "success" ? "Successful" : "Failed" }, + { + name: "Status", + value: type === "success" ? "Successful" : "Failed", + }, ]; if (backupSize) { facts.push({ name: "Backup Size", value: backupSize });