From 6610eae33e27b0a4b944ba5cf2c6ec97f2c0ab80 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sun, 5 Mar 2023 00:17:57 -0800 Subject: capture tip prompt field --- lib/invoices.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') 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, -- cgit v1.2.3