aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/send.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/send.js b/lib/send.js
index 7850da08..2e4f1f12 100644
--- a/lib/send.js
+++ b/lib/send.js
@@ -89,7 +89,7 @@ send = async (amount, memo, hash, user) => {
payment = await db.Payment.create(
{
- amount: -total,
+ amount: -(total - fee),
account_id: account.id,
user_id: user.id,
hash,
@@ -113,7 +113,7 @@ send = async (amount, memo, hash, user) => {
seen.push(preimage);
seen.push(hash);
- l.info("sent lightning", user.username, total);
+ l.info("sent lightning", user.username, (total - fee), fee);
});