diff options
| author | Adam Soltys <[email protected]> | 2022-07-05 11:51:26 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-07-05 11:51:26 -0700 |
| commit | 135c5766061f753eaa4ed9394493ecbf938e458c (patch) | |
| tree | 3dd691dbbeabea4d161e98720beabcc59c53b273 /routes/lightning | |
| parent | 58f609efd159fca5db1a9b359f9e3f1e26ace302 (diff) | |
| download | coinos-server-135c5766061f753eaa4ed9394493ecbf938e458c.tar.gz coinos-server-135c5766061f753eaa4ed9394493ecbf938e458c.zip | |
create fee payment record and capture id
Diffstat (limited to 'routes/lightning')
| -rw-r--r-- | routes/lightning/receive.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routes/lightning/receive.js b/routes/lightning/receive.js index 6d10eb9b..89ad4c29 100644 --- a/routes/lightning/receive.js +++ b/routes/lightning/receive.js @@ -63,7 +63,7 @@ const handlePayment = async (msg) => { await account.increment({ balance: total }, { transaction }); // get the # of fee credits you would need to pay off this amount of bitcoin - await account.increment({ btc_credits: computeConversionFee(total) }, { transaction }); + await account.increment({ lightning_credits: computeConversionFee(total) }, { transaction }); await account.reload({ transaction }); await invoice.save({ transaction }); await payment.save({ transaction }); |
