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} {