aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-02-21 10:52:36 -0800
committerAdam Soltys <[email protected]>2024-02-21 10:52:37 -0800
commit689c16c5017ed447559a15cb287044a9cceee288 (patch)
treea82762b64c2e6ad9c45fccbd066d03757acc619f
parent60080d284f8d740cc9e1e42c7a4359053dedfb68 (diff)
downloadcoinos-server-689c16c5017ed447559a15cb287044a9cceee288.tar.gz
coinos-server-689c16c5017ed447559a15cb287044a9cceee288.zip
log payment details
-rw-r--r--lib/payments.js1
-rw-r--r--routes/payments.js2
2 files changed, 1 insertions, 2 deletions
diff --git a/lib/payments.js b/lib/payments.js
index 754d2f0c..dddb2325 100644
--- a/lib/payments.js
+++ b/lib/payments.js
@@ -265,7 +265,6 @@ let pay = async ({ amount, to, user }) => {
pr = to;
}
- console.log("PAYING");
return pr
? await sendLightning({ user, pr, amount, maxfee })
: await sendOnchain({ amount, address: to, user, subtract: true });
diff --git a/routes/payments.js b/routes/payments.js
index 3dd8e5e3..fd42e07b 100644
--- a/routes/payments.js
+++ b/routes/payments.js
@@ -253,7 +253,7 @@ export default {
invoice.received += parseInt(invoice.pending);
invoice.pending = 0;
- l("confirming", txid);
+ l("confirming", id, p.id, p.amount);
let r = await db
.multi()