Skip to content

Commit

Permalink
idk
Browse files Browse the repository at this point in the history
  • Loading branch information
willuhmjs committed Nov 29, 2024
1 parent 25357f0 commit 9fabc40
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/routes/admin/+page.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ export const actions = {
backup: async ({ request }) => {
try {
const data = await request.formData();
const games = JSON.parse(data.get('games') as string) ?? error(400, "Invalid Form Data");
const games = JSON.parse(data.get('words') as string) ?? error(400, "Invalid Form Data");
console.log(games);
await prisma.game.createMany({
data: games,
skipDuplicates: true,
Expand Down

0 comments on commit 9fabc40

Please sign in to comment.