diff options
| author | Adam Soltys <[email protected]> | 2024-09-19 15:55:38 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-09-19 15:55:38 -0700 |
| commit | d4c3d52fdde5fef8f72c1f572f1ce7c70da86b23 (patch) | |
| tree | f523771b8645ed2e76dc08be4521788c59561397 /src/lib | |
| parent | 072cb81c886d7461a6e1ffce9d658d1463ca6315 (diff) | |
| download | coinos-ui-d4c3d52fdde5fef8f72c1f572f1ce7c70da86b23.tar.gz coinos-ui-d4c3d52fdde5fef8f72c1f572f1ce7c70da86b23.zip | |
progress on accounts
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/invoice.ts | 4 | ||||
| -rw-r--r-- | src/lib/types.ts | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/invoice.ts b/src/lib/invoice.ts index 9745c27b..0a50b876 100644 --- a/src/lib/invoice.ts +++ b/src/lib/invoice.ts @@ -2,14 +2,14 @@ import { auth, get, post } from "$lib/utils"; import { redirect } from "@sveltejs/kit"; export default async ({ cookies, request }) => { - let account = cookies.get("account"); + let account_id = cookies.get("account_id"); let form = await request.formData(); let rates = await get("/rates"); let amount = parseInt(form.get("amount")); let invoice = { - account, + account_id, amount, items: JSON.parse(form.get("items")), memo: form.get("memo"), diff --git a/src/lib/types.ts b/src/lib/types.ts index 666ea1fb..67a51f62 100644 --- a/src/lib/types.ts +++ b/src/lib/types.ts @@ -14,10 +14,10 @@ export interface User { } export interface Invoice { - account: string; + account_id: string; id?: string; memoPrompt?: boolean; memo?: string; rate: number; - type: string; + type?: string; } |
