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 | ef3bd2f6687d0bfca1b85cc3f4be47c8e628c748 (patch) | |
| tree | 5fdbecf4ae6784baf7593d574a4342f0749f19c3 /src/routes/invoice/index.js | |
| parent | e183a44d5447037ea807698b08d5a9497891628b (diff) | |
| download | coinos-ui-ef3bd2f6687d0bfca1b85cc3f4be47c8e628c748.tar.gz coinos-ui-ef3bd2f6687d0bfca1b85cc3f4be47c8e628c748.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 } }; } |
