diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/invoices.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/invoices.ts b/lib/invoices.ts index f6ad65e8..d624ac6b 100644 --- a/lib/invoices.ts +++ b/lib/invoices.ts @@ -23,6 +23,7 @@ export const generate = async ({ invoice, user }) => { tip, amount, items = [], + own, rate, request_id, memo, @@ -38,6 +39,7 @@ export const generate = async ({ invoice, user }) => { if (user) user = await getUser(user.username); if (!user) fail("user not provided"); + if (typeof prompt === "undefined") prompt = user.prompt; let account = await g(`account:${aid}`); if (!account) account = await g(`account:${user.id}`); @@ -134,6 +136,7 @@ export const generate = async ({ invoice, user }) => { received: 0, request_id, memoPrompt, + own, path, prompt, secret, |
