From 9d9ffcb69d02ba5ad2c4eccada5934c63553799d Mon Sep 17 00:00:00 2001 From: Daan Klarenbeek Date: Tue, 12 Sep 2023 21:12:03 +0200 Subject: [PATCH] fix: backups not imported correctly --- apps/web/src/app/admin/settings/_components/Backups/columns.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/src/app/admin/settings/_components/Backups/columns.tsx b/apps/web/src/app/admin/settings/_components/Backups/columns.tsx index 2740d33d..0a2a9163 100644 --- a/apps/web/src/app/admin/settings/_components/Backups/columns.tsx +++ b/apps/web/src/app/admin/settings/_components/Backups/columns.tsx @@ -29,7 +29,7 @@ export const columns: ColumnDef<{ name: string }>[] = [ async function importBackup() { try { - await axios.delete("/api/admin/backups/import", { data: { id: name } }); + await axios.post("/api/admin/backups/import", { data: { id: name.replace(".zip", "") } }); toast({ title: "Backup imported", description: `${name} has been imported, please restart the server as soon as possible for the changes to be processed.`