diff options
Diffstat (limited to 'src/routes/(app)/fund')
| -rw-r--r-- | src/routes/(app)/fund/[id]/+page.server.ts | 4 | ||||
| -rw-r--r-- | src/routes/(app)/fund/[id]/withdraw/+page.server.ts | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/routes/(app)/fund/[id]/+page.server.ts b/src/routes/(app)/fund/[id]/+page.server.ts index c5c8db2f..e553b1b4 100644 --- a/src/routes/(app)/fund/[id]/+page.server.ts +++ b/src/routes/(app)/fund/[id]/+page.server.ts @@ -1,4 +1,4 @@ -import { error, redirect } from "@sveltejs/kit"; +import { redirect } from "@sveltejs/kit"; import { auth, get, post } from "$lib/utils"; import Qr from "qrcode-base64"; @@ -10,7 +10,7 @@ export let load = async ({ params: { id }, url }) => { }; export const actions = { - default: async ({ cookies, locals, params, request }) => { + default: async ({ cookies, locals, params }) => { let { user } = locals; if (user) { diff --git a/src/routes/(app)/fund/[id]/withdraw/+page.server.ts b/src/routes/(app)/fund/[id]/withdraw/+page.server.ts index 1da349f8..f0379153 100644 --- a/src/routes/(app)/fund/[id]/withdraw/+page.server.ts +++ b/src/routes/(app)/fund/[id]/withdraw/+page.server.ts @@ -1,4 +1,4 @@ -import { fail, json, redirect } from "@sveltejs/kit"; +import { fail, redirect } from "@sveltejs/kit"; import { fd, auth, post } from "$lib/utils"; export async function load({ parent }) { @@ -11,7 +11,7 @@ export const actions = { let body = await fd(request); try { await post("/take", body, auth(cookies)); - } catch (e) { + } catch (e: any) { return fail(400, { message: e.message }); } |
