From 42e6af64baccdf5724c4b15d4533cd575f7dd88f Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 4 Sep 2026 21:44:56 +0000 Subject: [PATCH] style: apply Biome formatting --- apps/dokploy/__test__/utils/backups.test.ts | 4 +--- .../settings/destination/handle-destinations.tsx | 10 ++++++---- apps/dokploy/server/api/routers/backup.ts | 5 ++--- packages/server/src/utils/backups/utils.ts | 2 +- 4 files changed, 10 insertions(+), 11 deletions(-) diff --git a/apps/dokploy/__test__/utils/backups.test.ts b/apps/dokploy/__test__/utils/backups.test.ts index 7e4dbdcae..d588205ce 100644 --- a/apps/dokploy/__test__/utils/backups.test.ts +++ b/apps/dokploy/__test__/utils/backups.test.ts @@ -290,9 +290,7 @@ describe("getRclonePathAndFlags", () => { secretAccessKey: "", region: "", bucket: "/backups/", - additionalFlags: [ - "--sftp-known-hosts-file=/etc/ssh/ssh_known_hosts", - ], + additionalFlags: ["--sftp-known-hosts-file=/etc/ssh/ssh_known_hosts"], }), "service/backup.tar", ); diff --git a/apps/dokploy/components/dashboard/settings/destination/handle-destinations.tsx b/apps/dokploy/components/dashboard/settings/destination/handle-destinations.tsx index 87b5215bd..d44307aa5 100644 --- a/apps/dokploy/components/dashboard/settings/destination/handle-destinations.tsx +++ b/apps/dokploy/components/dashboard/settings/destination/handle-destinations.tsx @@ -114,7 +114,8 @@ const addDestination = z const flags = data.additionalFlags?.map((flag) => flag.value) ?? []; if (data.provider === RCLONE_DESTINATION_PROVIDERS.FTP) { - const { implicitTlsEnabled, explicitTlsEnabled } = getFtpTlsState(flags); + const { implicitTlsEnabled, explicitTlsEnabled } = + getFtpTlsState(flags); if (!implicitTlsEnabled && !explicitTlsEnabled) { ctx.addIssue({ code: "custom", @@ -204,8 +205,9 @@ export const HandleDestinations = ({ destinationId }: Props) => { const currentProvider = form.watch("provider"); const currentAdditionalFlags = form.watch("additionalFlags")?.map((flag) => flag.value) ?? []; - const { implicitTlsEnabled: implicitFtpTlsEnabled } = - getFtpTlsState(currentAdditionalFlags); + const { implicitTlsEnabled: implicitFtpTlsEnabled } = getFtpTlsState( + currentAdditionalFlags, + ); const isNamedRemote = isNamedRcloneDestinationProvider(currentProvider); const isFileTransfer = currentProvider === RCLONE_DESTINATION_PROVIDERS.FTP || @@ -671,4 +673,4 @@ export const HandleDestinations = ({ destinationId }: Props) => { ); -}; \ No newline at end of file +}; diff --git a/apps/dokploy/server/api/routers/backup.ts b/apps/dokploy/server/api/routers/backup.ts index d71a45d99..ca2a6e738 100644 --- a/apps/dokploy/server/api/routers/backup.ts +++ b/apps/dokploy/server/api/routers/backup.ts @@ -602,8 +602,7 @@ export const backupRouter = createTRPCRouter({ ); const queue: string[] = []; let done = false; - const onLog = (log: string) => - queue.push(redactRcloneCredentials(log)); + const onLog = (log: string) => queue.push(redactRcloneCredentials(log)); const runRestore = async () => { if (input.backupType === "database") { if (input.databaseType === "postgres") { @@ -650,4 +649,4 @@ export const backupRouter = createTRPCRouter({ } } }), -}); \ No newline at end of file +}); diff --git a/packages/server/src/utils/backups/utils.ts b/packages/server/src/utils/backups/utils.ts index cc45d751e..5a42c11d3 100644 --- a/packages/server/src/utils/backups/utils.ts +++ b/packages/server/src/utils/backups/utils.ts @@ -404,4 +404,4 @@ export const getBackupCommand = ( echo "[$(date)] ✅ Backup uploaded successfully" >> ${logPath}; echo "Backup done ✅" >> ${logPath}; `; -}; \ No newline at end of file +};