diff options
| author | Adam Soltys <[email protected]> | 2024-09-12 15:34:31 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-09-17 09:19:26 -0700 |
| commit | 149b0ec0471232d8f583d8a126d1d0d7f50a19d5 (patch) | |
| tree | ad112ff6c50c991a3c90a3c5faee11e9ffe40b5d /src/lib/invoice.ts | |
| parent | 2114156be3f89a2ef4c5bd13fd6d7a51d8fbc135 (diff) | |
| download | coinos-ui-149b0ec0471232d8f583d8a126d1d0d7f50a19d5.tar.gz coinos-ui-149b0ec0471232d8f583d8a126d1d0d7f50a19d5.zip | |
get account from cookie
Diffstat (limited to 'src/lib/invoice.ts')
| -rw-r--r-- | src/lib/invoice.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/invoice.ts b/src/lib/invoice.ts index 0ab0a9af..9745c27b 100644 --- a/src/lib/invoice.ts +++ b/src/lib/invoice.ts @@ -1,7 +1,8 @@ -import { auth, get, post, setAccount } from "$lib/utils"; +import { auth, get, post } from "$lib/utils"; import { redirect } from "@sveltejs/kit"; -export default async ({ cookies, request, url }) => { +export default async ({ cookies, request }) => { + let account = cookies.get("account"); let form = await request.formData(); let rates = await get("/rates"); |
