From d5163322fb48ef5be2fb14b81e7de54e32a0e192 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Tue, 17 Feb 2026 03:17:55 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes --- packages/server/src/services/environment.ts | 4 +++- .../src/utils/notifications/database-backup.ts | 5 ++++- .../src/utils/notifications/server-threshold.ts | 2 +- .../server/src/utils/notifications/volume-backup.ts | 13 +++++++++++-- 4 files changed, 19 insertions(+), 5 deletions(-) diff --git a/packages/server/src/services/environment.ts b/packages/server/src/services/environment.ts index a645ef4bf..2f4ed5085 100644 --- a/packages/server/src/services/environment.ts +++ b/packages/server/src/services/environment.ts @@ -101,7 +101,9 @@ export const findEnvironmentsByProjectId = async (projectId: string) => { return projectEnvironments; }; -const environmentHasServices = (env: Awaited>) => { +const environmentHasServices = ( + env: Awaited>, +) => { return ( (env.applications?.length ?? 0) > 0 || (env.compose?.length ?? 0) > 0 || diff --git a/packages/server/src/utils/notifications/database-backup.ts b/packages/server/src/utils/notifications/database-backup.ts index e07bf10b8..0a5e2f502 100644 --- a/packages/server/src/utils/notifications/database-backup.ts +++ b/packages/server/src/utils/notifications/database-backup.ts @@ -421,7 +421,10 @@ export const sendDatabaseBackupNotifications = async ({ { name: "Database Type", value: databaseType }, { name: "Database Name", value: databaseName }, { name: "Date", value: format(date, "PP pp") }, - { name: "Status", value: type === "success" ? "Successful" : "Failed" }, + { + name: "Status", + value: type === "success" ? "Successful" : "Failed", + }, ]; if (type === "error" && errorMessage) { facts.push({ name: "Error", value: errorMessage.substring(0, 500) }); diff --git a/packages/server/src/utils/notifications/server-threshold.ts b/packages/server/src/utils/notifications/server-threshold.ts index b43a4d45b..53ed95a85 100644 --- a/packages/server/src/utils/notifications/server-threshold.ts +++ b/packages/server/src/utils/notifications/server-threshold.ts @@ -50,7 +50,7 @@ export const sendServerThresholdNotifications = async ( for (const notification of notificationList) { const { discord, telegram, slack, custom, lark, pushover, teams } = - notification; + notification; if (discord) { const decorate = (decoration: string, text: string) => diff --git a/packages/server/src/utils/notifications/volume-backup.ts b/packages/server/src/utils/notifications/volume-backup.ts index be5e3d18d..78f1f263f 100644 --- a/packages/server/src/utils/notifications/volume-backup.ts +++ b/packages/server/src/utils/notifications/volume-backup.ts @@ -63,8 +63,17 @@ export const sendVolumeBackupNotifications = async ({ }); for (const notification of notificationList) { - const { email, resend, discord, telegram, slack, gotify, ntfy, pushover, teams } = - notification; + const { + email, + resend, + discord, + telegram, + slack, + gotify, + ntfy, + pushover, + teams, + } = notification; if (email || resend) { const subject = `Volume Backup ${type === "success" ? "Successful" : "Failed"} - ${applicationName}`;