diff options
Diffstat (limited to 'src/routes/(app)/pot')
| -rw-r--r-- | src/routes/(app)/pot/[name]/withdraw/+page.server.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/routes/(app)/pot/[name]/withdraw/+page.server.js b/src/routes/(app)/pot/[name]/withdraw/+page.server.js index ab56867d..ac33e940 100644 --- a/src/routes/(app)/pot/[name]/withdraw/+page.server.js +++ b/src/routes/(app)/pot/[name]/withdraw/+page.server.js @@ -1,5 +1,5 @@ import { fail, redirect } from '@sveltejs/kit'; -import { auth, post } from '$lib/utils'; +import { fd, auth, post } from '$lib/utils'; export async function load({ parent }) { let { user } = await parent(); @@ -8,8 +8,7 @@ export async function load({ parent }) { export const actions = { default: async ({ cookies, request }) => { - let body = Object.fromEntries(await request.formData()); - + let body = await fd(request); try { await post('/take', body, auth(cookies)); } catch (e) { |
