diff options
| author | Adam Soltys <[email protected]> | 2023-02-01 19:58:13 +0000 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-02-01 19:59:56 +0000 |
| commit | fe0455ffe2d93eda5792ec1ef38348ef24aba2aa (patch) | |
| tree | bf7a50f92102efe926d435268a7963e2a9289e28 /lib | |
| parent | 79caa557bc47d2b727d06c7eaaf3694ccf7202c1 (diff) | |
| download | coinos-server-fe0455ffe2d93eda5792ec1ef38348ef24aba2aa.tar.gz coinos-server-fe0455ffe2d93eda5792ec1ef38348ef24aba2aa.zip | |
preserve user id
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/invoices.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/invoices.js b/lib/invoices.js index 814e87d9..4a09f44b 100644 --- a/lib/invoices.js +++ b/lib/invoices.js @@ -12,7 +12,7 @@ import ln from "$lib/ln"; export let generate = async ({ invoice, user, sender }) => { let { currency, tip, amount, rate, request_id, type } = invoice; - amount = parseInt(amount); + amount = parseInt(amount || 0); tip = parseInt(tip || 0); if (amount < 0) fail("amount out of range"); |
