aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/payments.js5
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)) {