Skip to content

Commit

Permalink
fix: backups not imported correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
ijsKoud committed Sep 12, 2023
1 parent d6ab4de commit 9d9ffcb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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.`
Expand Down

0 comments on commit 9d9ffcb

Please sign in to comment.