From 9b9dd984b891f2d84fb65493bd3e31b02bbe40fc Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Tue, 4 Aug 2026 21:15:50 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes --- apps/dokploy/__test__/utils/backups.test.ts | 9 +++++---- .../dashboard/database/backups/restore-backup.tsx | 9 ++------- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/apps/dokploy/__test__/utils/backups.test.ts b/apps/dokploy/__test__/utils/backups.test.ts index f6f52748b..84e004d95 100644 --- a/apps/dokploy/__test__/utils/backups.test.ts +++ b/apps/dokploy/__test__/utils/backups.test.ts @@ -212,7 +212,10 @@ describe("keepLatestNBackups", () => { expect(consoleErrorSpy).not.toHaveBeenCalled(); try { - return readFileSync(deletedFile, "utf-8").trim().split("\n").filter(Boolean); + return readFileSync(deletedFile, "utf-8") + .trim() + .split("\n") + .filter(Boolean); } catch { return []; } @@ -273,9 +276,7 @@ describe("keepLatestNBackups", () => { test("deletes the chronologically oldest backups, not the lexicographically last ones", async () => { const deleted = await runKeepLatestNBackups(2, lsfLines); - const deletedFilenames = deleted.map( - (path) => path.split("/").at(-1), - ); + const deletedFilenames = deleted.map((path) => path.split("/").at(-1)); // A naive filename-only sort would have kept the two files whose names // sort last ("dokploy-local-...-03-30" and "dokploy-local-...-03-28") diff --git a/apps/dokploy/components/dashboard/database/backups/restore-backup.tsx b/apps/dokploy/components/dashboard/database/backups/restore-backup.tsx index 5b4d898b8..cf5eb2d72 100644 --- a/apps/dokploy/components/dashboard/database/backups/restore-backup.tsx +++ b/apps/dokploy/components/dashboard/database/backups/restore-backup.tsx @@ -407,13 +407,8 @@ export const RestoreBackup = ({ Search Backup Files {field.value && ( - - - {field.value} - + + {field.value} {