[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot]
2026-02-17 03:17:55 +00:00
committed by GitHub
parent 714849883e
commit d5163322fb
4 changed files with 19 additions and 5 deletions

View File

@@ -101,7 +101,9 @@ export const findEnvironmentsByProjectId = async (projectId: string) => {
return projectEnvironments;
};
const environmentHasServices = (env: Awaited<ReturnType<typeof findEnvironmentById>>) => {
const environmentHasServices = (
env: Awaited<ReturnType<typeof findEnvironmentById>>,
) => {
return (
(env.applications?.length ?? 0) > 0 ||
(env.compose?.length ?? 0) > 0 ||

View File

@@ -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) });

View File

@@ -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) =>

View File

@@ -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}`;