From 7801ce67ace77f5de98ddc38d7b0b45c68faeb6b Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 3 Dec 2024 15:57:40 -0800 Subject: cache qrs --- src/routes/(app)/fund/[id]/+page.server.ts | 10 ++-------- 1 file changed, 2 insertions(+), 8 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 4f189133..bc07d721 100644 --- a/src/routes/(app)/fund/[id]/+page.server.ts +++ b/src/routes/(app)/fund/[id]/+page.server.ts @@ -1,13 +1,7 @@ -import { redirect } from "@sveltejs/kit"; import { auth, get, post } from "$lib/utils"; -import Qr from "qrcode-base64"; - -export const load = async ({ params: { id }, url }) => { - const { amount, payments } = await get(`/fund/${id}`); +import { redirect } from "@sveltejs/kit"; - const src = Qr.drawImg(url.href, { size: 300 }); - return { amount, payments, src }; -}; +export const load = async ({ params: { id } }) => get(`/fund/${id}`); export const actions = { default: async ({ cookies, locals, params }) => { -- cgit v1.2.3