[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot]
2025-10-23 12:00:30 +00:00
committed by GitHub
parent 046606e496
commit 8e5be8dbcb
4 changed files with 98 additions and 53 deletions

View File

@@ -25,7 +25,14 @@ export const sendVolumeBackupNotifications = async ({
projectName: string;
applicationName: string;
volumeName: string;
serviceType: "application" | "postgres" | "mysql" | "mongodb" | "mariadb" | "redis" | "compose";
serviceType:
| "application"
| "postgres"
| "mysql"
| "mongodb"
| "mariadb"
| "redis"
| "compose";
type: "error" | "success";
organizationId: string;
errorMessage?: string;
@@ -106,11 +113,15 @@ export const sendVolumeBackupNotifications = async ({
value: serviceType,
inline: true,
},
...(backupSize ? [{
name: decorate("`📊`", "Backup Size"),
value: backupSize,
inline: true,
}] : []),
...(backupSize
? [
{
name: decorate("`📊`", "Backup Size"),
value: backupSize,
inline: true,
},
]
: []),
{
name: decorate("`📅`", "Date"),
value: `<t:${unixDate}:D>`,
@@ -236,11 +247,15 @@ export const sendVolumeBackupNotifications = async ({
value: serviceType,
short: true,
},
...(backupSize ? [{
title: "Backup Size",
value: backupSize,
short: true,
}] : []),
...(backupSize
? [
{
title: "Backup Size",
value: backupSize,
short: true,
},
]
: []),
{
title: "Time",
value: date.toLocaleString(),