diff options
| author | Adam Soltys <[email protected]> | 2024-08-31 15:23:49 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-08-31 15:23:49 -0700 |
| commit | e11b199080b4b295dfb7b95187275565bce9c35a (patch) | |
| tree | 46098814beabc79de334898dbc4808aed8d5f329 /src/routes/(app)/fund | |
| parent | c9acca0218d47226c567da62c4a8bf97691c9b0d (diff) | |
| download | coinos-ui-e11b199080b4b295dfb7b95187275565bce9c35a.tar.gz coinos-ui-e11b199080b4b295dfb7b95187275565bce9c35a.zip | |
typescript
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 }); } |
