diff options
| author | Adam Soltys <[email protected]> | 2024-06-04 06:15:29 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-06-04 06:15:29 -0700 |
| commit | 0b7f6a88d9e7fd3965981b3fb8987f47c3c027b8 (patch) | |
| tree | 694f7f1b2684dda4cd2b6783ec19db38a17c334c /lib/payments.js | |
| parent | 0b887260788ae69fba1dace2f351a23a71862dc2 (diff) | |
| download | coinos-server-0b7f6a88d9e7fd3965981b3fb8987f47c3c027b8.tar.gz coinos-server-0b7f6a88d9e7fd3965981b3fb8987f47c3c027b8.zip | |
lnurl verify
Diffstat (limited to 'lib/payments.js')
| -rw-r--r-- | lib/payments.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/payments.js b/lib/payments.js index 56d048c8..d3250778 100644 --- a/lib/payments.js +++ b/lib/payments.js @@ -175,7 +175,10 @@ export let credit = async (hash, amount, memo, ref, type = types.internal) => { }; if ([types.bitcoin, types.liquid].includes(type)) inv.pending += amount; - else inv.received += amount; + else { + inv.received += amount; + inv.preimage = ref; + } let balanceKey = "balance"; if ([types.bitcoin, types.liquid].includes(type)) { |
