aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--routes/lightning/receive.js7
-rw-r--r--routes/lightning/send.js2
2 files changed, 4 insertions, 5 deletions
diff --git a/routes/lightning/receive.js b/routes/lightning/receive.js
index 97fe07dc..403eb999 100644
--- a/routes/lightning/receive.js
+++ b/routes/lightning/receive.js
@@ -30,7 +30,7 @@ const handlePayment = async msg => {
rate,
received: true,
confirmed: true,
- network: 'LNBTC',
+ network: "LNBTC",
tip
});
@@ -42,7 +42,7 @@ const handlePayment = async msg => {
await payment.save();
payments.push(msg.payment_request);
- let user = await getUserById(user_id)
+ let user = await getUserById(user_id);
payment = payment.get({ plain: true });
payment.account = account.get({ plain: true });
@@ -53,8 +53,7 @@ const handlePayment = async msg => {
"lightning payment received",
user.username,
payment.amount,
- payment.tip,
- msg
+ payment.tip
);
};
diff --git a/routes/lightning/send.js b/routes/lightning/send.js
index 6f21cc9b..22c7627a 100644
--- a/routes/lightning/send.js
+++ b/routes/lightning/send.js
@@ -82,7 +82,7 @@ module.exports = async (req, res) => {
payment.account = account.get({ plain: true });
seen.push(m.payment_preimage);
- l.info("sent lightning", user.username, -payment.amount, m);
+ l.info("sent lightning", user.username, -payment.amount);
user = await getUser(user.username);
emit(user.username, "user", user);