From e11b199080b4b295dfb7b95187275565bce9c35a Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sat, 31 Aug 2024 15:23:49 -0700 Subject: typescript --- src/routes/(app)/fund/[id]/+page.server.ts | 4 ++-- src/routes/(app)/fund/[id]/withdraw/+page.server.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/routes/(app)/fund') 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 }); } -- cgit v1.2.3