diff options
| author | Adam Soltys <[email protected]> | 2020-01-29 14:33:51 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2020-01-29 14:33:51 -0800 |
| commit | c3ed4317d37f1c760392d9a89610d07ccd3a7d03 (patch) | |
| tree | 3c73ea9e8ee04c0585a3dce4eb5de5a8f2634100 /lightningPayments.js | |
| parent | e34f41697eb4b96508dc27197b91ef06bd47a641 (diff) | |
| download | coinos-server-c3ed4317d37f1c760392d9a89610d07ccd3a7d03.tar.gz coinos-server-c3ed4317d37f1c760392d9a89610d07ccd3a7d03.zip | |
set payment currency
Diffstat (limited to 'lightningPayments.js')
| -rw-r--r-- | lightningPayments.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lightningPayments.js b/lightningPayments.js index e7d84868..278d7f02 100644 --- a/lightningPayments.js +++ b/lightningPayments.js @@ -17,6 +17,7 @@ module.exports = (app, db, lna, lnb, emit, payments) => { user.balance += parseInt(msg.value); payment.rate = app.get("rates")[user.currency]; payment.confirmed = true; + payment.currency = user.currency; await payment.save(); await user.save(); |
