diff options
| author | Adam Soltys <[email protected]> | 2024-09-20 10:03:30 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-09-20 10:03:30 -0700 |
| commit | fb8510db273f78317a02ca151f7f24a9b8de29ab (patch) | |
| tree | 6ef7f6c272118156076de7a9025d89a8e1a70ce9 /src/lib | |
| parent | 5c86d9eadaa0021928ea39c7d0e875d0c446280f (diff) | |
| download | coinos-ui-fb8510db273f78317a02ca151f7f24a9b8de29ab.tar.gz coinos-ui-fb8510db273f78317a02ca151f7f24a9b8de29ab.zip | |
rename account_id
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/invoice.ts | 4 | ||||
| -rw-r--r-- | src/lib/types.ts | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/invoice.ts b/src/lib/invoice.ts index 0a50b876..fa2f7786 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_id = cookies.get("account_id"); + let aid = cookies.get("aid"); let form = await request.formData(); let rates = await get("/rates"); let amount = parseInt(form.get("amount")); let invoice = { - account_id, + aid, amount, items: JSON.parse(form.get("items")), memo: form.get("memo"), diff --git a/src/lib/types.ts b/src/lib/types.ts index 67a51f62..827f96aa 100644 --- a/src/lib/types.ts +++ b/src/lib/types.ts @@ -14,7 +14,7 @@ export interface User { } export interface Invoice { - account_id: string; + aid: string; id?: string; memoPrompt?: boolean; memo?: string; |
