diff options
| author | Adam Soltys <[email protected]> | 2024-12-03 15:57:40 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-12-03 16:46:25 -0800 |
| commit | 7801ce67ace77f5de98ddc38d7b0b45c68faeb6b (patch) | |
| tree | 64e3d8db8173db04e2181c3ddb33ef1a2406f301 /src/routes/(app)/fund | |
| parent | 2b174ad557e82731e59ff47e705af085071f7132 (diff) | |
| download | coinos-ui-7801ce67ace77f5de98ddc38d7b0b45c68faeb6b.tar.gz coinos-ui-7801ce67ace77f5de98ddc38d7b0b45c68faeb6b.zip | |
cache qrs
Diffstat (limited to 'src/routes/(app)/fund')
| -rw-r--r-- | src/routes/(app)/fund/[id]/+page.server.ts | 10 |
1 files changed, 2 insertions, 8 deletions
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 }) => { |
