From 38aa5fa9952bfce66e37fc0c92216bd477aba574 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 16 Feb 2023 19:40:47 -0800 Subject: messages fix --- lib/payments.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/payments.js') 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}`); -- cgit v1.2.3