aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-02-16 19:40:47 -0800
committerAdam Soltys <[email protected]>2023-02-16 19:40:48 -0800
commit38aa5fa9952bfce66e37fc0c92216bd477aba574 (patch)
tree9aa7e88a0215ae7e5ea2aa366a0b9b9135483c98 /lib
parent03200c4299af45f2fb8693de76672eaecf43dd67 (diff)
downloadcoinos-server-38aa5fa9952bfce66e37fc0c92216bd477aba574.tar.gz
coinos-server-38aa5fa9952bfce66e37fc0c92216bd477aba574.zip
messages fix
Diffstat (limited to 'lib')
-rw-r--r--lib/payments.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/payments.js b/lib/payments.js
index 657590ee..89652ff4 100644
--- a/lib/payments.js
+++ b/lib/payments.js
@@ -81,7 +81,7 @@ export let debit = async (
export let credit = async (hash, amount, memo, ref, type = types.internal) => {
amount = parseInt(amount);
let invoice = await g(`invoice:${hash}`);
- if (!invoice) return warn("failed to credit", ref, ", invoice not found");
+ if (!invoice) return warn("failed to credit", hash, ", invoice not found");
if (!memo) ({ memo } = invoice);
let user = await g(`user:${invoice.uid}`);