diff options
| author | Adam Soltys <[email protected]> | 2020-04-30 00:05:37 -0400 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2020-04-30 00:05:37 -0400 |
| commit | c5545d98aed3eaac4f88cdc3a9f3d7d9e7204134 (patch) | |
| tree | a14213bcad22d9a0f331b6073e15308fe015177c /routes/lightning/receive.js | |
| parent | 53b76aa961bdd4b8daa6cb8a8f002373546cd7f7 (diff) | |
| parent | fa84d5a65844602c7e97e9bf0e5a51befdebaf53 (diff) | |
| download | coinos-server-c5545d98aed3eaac4f88cdc3a9f3d7d9e7204134.tar.gz coinos-server-c5545d98aed3eaac4f88cdc3a9f3d7d9e7204134.zip | |
Merge branch 'master' of https://github.com/asoltys/coinos-server
Diffstat (limited to 'routes/lightning/receive.js')
| -rw-r--r-- | routes/lightning/receive.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/routes/lightning/receive.js b/routes/lightning/receive.js index 97fe07dc..980d9e01 100644 --- a/routes/lightning/receive.js +++ b/routes/lightning/receive.js @@ -27,10 +27,11 @@ const handlePayment = async msg => { hash, amount, currency, + preimage: msg.r_preimage.toString('hex'), rate, received: true, confirmed: true, - network: 'LNBTC', + network: "LNBTC", tip }); @@ -42,7 +43,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 }); @@ -54,7 +55,6 @@ const handlePayment = async msg => { user.username, payment.amount, payment.tip, - msg ); }; |
