diff options
| author | Adam Soltys <[email protected]> | 2023-03-05 00:17:57 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-03-05 00:19:09 -0800 |
| commit | 6610eae33e27b0a4b944ba5cf2c6ec97f2c0ab80 (patch) | |
| tree | 18e65598438a719c7d69fb2daa4d7cf7944f46fe /lib | |
| parent | 2afb528326ea27c7073938d64aab994ea677bdc7 (diff) | |
| download | coinos-server-6610eae33e27b0a4b944ba5cf2c6ec97f2c0ab80.tar.gz coinos-server-6610eae33e27b0a4b944ba5cf2c6ec97f2c0ab80.zip | |
capture tip prompt field
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/invoices.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/invoices.js b/lib/invoices.js index f64cf409..5d68d09d 100644 --- a/lib/invoices.js +++ b/lib/invoices.js @@ -10,7 +10,7 @@ import bc from "$lib/bitcoin"; import ln from "$lib/ln"; export let generate = async ({ invoice, user, sender, memo }) => { - let { currency, tip, amount, rate, request_id, type } = invoice; + let { currency, tip, amount, rate, request_id, prompt, type } = invoice; amount = parseInt(amount || 0); tip = parseInt(tip || 0); @@ -60,6 +60,7 @@ export let generate = async ({ invoice, user, sender, memo }) => { rate, received: 0, request_id, + prompt, text, tip, type, |
