aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/invoice/index.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-08-01 11:32:46 -0700
committerAdam Soltys <[email protected]>2022-08-01 11:32:46 -0700
commit2b232a584144a92188b1ef337e90c7848b007dbe (patch)
tree19cf3320b21e506c777bb5a964442a133f318577 /src/routes/invoice/index.js
parenta54d21b74afb4bfc55c48828a716b43acbbc7819 (diff)
downloadcoinos-ui-2b232a584144a92188b1ef337e90c7848b007dbe.tar.gz
coinos-ui-2b232a584144a92188b1ef337e90c7848b007dbe.zip
pass amount to lightning invoice endpoint
Diffstat (limited to 'src/routes/invoice/index.js')
-rw-r--r--src/routes/invoice/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/routes/invoice/index.js b/src/routes/invoice/index.js
index f6b1f2cf..2bd95538 100644
--- a/src/routes/invoice/index.js
+++ b/src/routes/invoice/index.js
@@ -4,7 +4,7 @@ let network = 'lightning';
export async function POST({ request }) {
let { amount, rate, username } = await request.json();
- let { text } = await post('/lightning/invoice');
+ let { text } = await post('/lightning/invoice', { amount });
let { uuid: id } = await post('/invoice', {
invoice: { amount, currency: 'USD', network, rate, text },
user: { username }