diff options
| author | Adam Soltys <[email protected]> | 2022-07-30 11:50:42 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-07-30 11:50:42 -0700 |
| commit | 7168cd2ea39aaa2158412bb5e966e144e8a22733 (patch) | |
| tree | 97a122a3b3d86e204d6c59b5805e28af590c6f11 /src/routes/invoice/index.js | |
| parent | 5bf4891768f1ee359ee5795272c289b40745aed5 (diff) | |
| download | coinos-ui-7168cd2ea39aaa2158412bb5e966e144e8a22733.tar.gz coinos-ui-7168cd2ea39aaa2158412bb5e966e144e8a22733.zip | |
invoice updates
Diffstat (limited to 'src/routes/invoice/index.js')
| -rw-r--r-- | src/routes/invoice/index.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/routes/invoice/index.js b/src/routes/invoice/index.js index 26bffd37..d89f7130 100644 --- a/src/routes/invoice/index.js +++ b/src/routes/invoice/index.js @@ -3,9 +3,9 @@ import { post } from '$lib/utils'; let network = 'lightning'; export async function POST({ request }) { - let { amount, username } = await request.json(); + let { amount, rate, username } = await request.json(); let { text } = await post('/lightning/invoice', ); - let { uuid: id } = await post('/invoice', { invoice: { text, network }, user: { username } }); + let { uuid: id } = await post('/invoice', { invoice: { amount, currency: 'USD', network, rate, text }, user: { username } }); return { body: { id } }; } |
