From d6704dbd27f2266ef0b3d050b56250a64d19e68a Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Tue, 4 Nov 2025 10:38:15 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes --- packages/server/src/utils/backups/compose.ts | 6 +++++- packages/server/src/utils/backups/mariadb.ts | 6 +++++- packages/server/src/utils/backups/mongo.ts | 6 +++++- packages/server/src/utils/backups/mysql.ts | 6 +++++- packages/server/src/utils/backups/postgres.ts | 6 +++++- packages/server/src/utils/volume-backups/backup.ts | 6 +++++- 6 files changed, 30 insertions(+), 6 deletions(-) diff --git a/packages/server/src/utils/backups/compose.ts b/packages/server/src/utils/backups/compose.ts index 459cd881d..c5df28bdc 100644 --- a/packages/server/src/utils/backups/compose.ts +++ b/packages/server/src/utils/backups/compose.ts @@ -19,7 +19,11 @@ export const runComposeBackup = async ( const project = await findProjectById(environment.projectId); const { prefix, databaseType } = backup; const destination = backup.destination; - const timestamp = new Date().toISOString().replace('T', '_').replace(/:/g, '-').replace('.', '_'); + const timestamp = new Date() + .toISOString() + .replace("T", "_") + .replace(/:/g, "-") + .replace(".", "_"); const backupFileName = `${timestamp}.sql.gz`; const bucketDestination = `${normalizeS3Path(prefix)}${backupFileName}`; const deployment = await createDeploymentBackup({ diff --git a/packages/server/src/utils/backups/mariadb.ts b/packages/server/src/utils/backups/mariadb.ts index 7f086ea58..ef5035e2d 100644 --- a/packages/server/src/utils/backups/mariadb.ts +++ b/packages/server/src/utils/backups/mariadb.ts @@ -19,7 +19,11 @@ export const runMariadbBackup = async ( const project = await findProjectById(environment.projectId); const { prefix } = backup; const destination = backup.destination; - const timestamp = new Date().toISOString().replace('T', '_').replace(/:/g, '-').replace('.', '_'); + const timestamp = new Date() + .toISOString() + .replace("T", "_") + .replace(/:/g, "-") + .replace(".", "_"); const backupFileName = `${timestamp}.sql.gz`; const bucketDestination = `${normalizeS3Path(prefix)}${backupFileName}`; const deployment = await createDeploymentBackup({ diff --git a/packages/server/src/utils/backups/mongo.ts b/packages/server/src/utils/backups/mongo.ts index 1cec601da..f069dec31 100644 --- a/packages/server/src/utils/backups/mongo.ts +++ b/packages/server/src/utils/backups/mongo.ts @@ -16,7 +16,11 @@ export const runMongoBackup = async (mongo: Mongo, backup: BackupSchedule) => { const project = await findProjectById(environment.projectId); const { prefix } = backup; const destination = backup.destination; - const timestamp = new Date().toISOString().replace('T', '_').replace(/:/g, '-').replace('.', '_'); + const timestamp = new Date() + .toISOString() + .replace("T", "_") + .replace(/:/g, "-") + .replace(".", "_"); const backupFileName = `${timestamp}.sql.gz`; const bucketDestination = `${normalizeS3Path(prefix)}${backupFileName}`; const deployment = await createDeploymentBackup({ diff --git a/packages/server/src/utils/backups/mysql.ts b/packages/server/src/utils/backups/mysql.ts index 37acaa43a..ecd0b6690 100644 --- a/packages/server/src/utils/backups/mysql.ts +++ b/packages/server/src/utils/backups/mysql.ts @@ -16,7 +16,11 @@ export const runMySqlBackup = async (mysql: MySql, backup: BackupSchedule) => { const project = await findProjectById(environment.projectId); const { prefix } = backup; const destination = backup.destination; - const timestamp = new Date().toISOString().replace('T', '_').replace(/:/g, '-').replace('.', '_'); + const timestamp = new Date() + .toISOString() + .replace("T", "_") + .replace(/:/g, "-") + .replace(".", "_"); const backupFileName = `${timestamp}.sql.gz`; const bucketDestination = `${normalizeS3Path(prefix)}${backupFileName}`; const deployment = await createDeploymentBackup({ diff --git a/packages/server/src/utils/backups/postgres.ts b/packages/server/src/utils/backups/postgres.ts index 0fcf03d7a..3d67274ed 100644 --- a/packages/server/src/utils/backups/postgres.ts +++ b/packages/server/src/utils/backups/postgres.ts @@ -25,7 +25,11 @@ export const runPostgresBackup = async ( }); const { prefix } = backup; const destination = backup.destination; - const timestamp = new Date().toISOString().replace('T', '_').replace(/:/g, '-').replace('.', '_'); + const timestamp = new Date() + .toISOString() + .replace("T", "_") + .replace(/:/g, "-") + .replace(".", "_"); const backupFileName = `${timestamp}.sql.gz`; const bucketDestination = `${normalizeS3Path(prefix)}${backupFileName}`; try { diff --git a/packages/server/src/utils/volume-backups/backup.ts b/packages/server/src/utils/volume-backups/backup.ts index 00270c444..831c830c0 100644 --- a/packages/server/src/utils/volume-backups/backup.ts +++ b/packages/server/src/utils/volume-backups/backup.ts @@ -12,7 +12,11 @@ export const backupVolume = async ( volumeBackup.application?.serverId || volumeBackup.compose?.serverId; const { VOLUME_BACKUPS_PATH } = paths(!!serverId); const destination = volumeBackup.destination; - const timestamp = new Date().toISOString().replace('T', '_').replace(/:/g, '-').replace('.', '_'); + const timestamp = new Date() + .toISOString() + .replace("T", "_") + .replace(/:/g, "-") + .replace(".", "_"); const backupFileName = `${volumeName}-${timestamp}.tar`; const bucketDestination = `${normalizeS3Path(prefix)}${backupFileName}`; const rcloneFlags = getS3Credentials(volumeBackup.destination);