aboutsummaryrefslogtreecommitdiffstats
path: root/sendPayment.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2019-10-27 20:32:46 -0700
committerAdam Soltys <[email protected]>2019-10-27 20:32:46 -0700
commit9c85d8117128a7eed4040129f8fd175f4899fcf8 (patch)
tree95e49979c03512f422ef92385a1bdf1fd8129747 /sendPayment.js
parentbabd01948f5e01d326feece425654cb17b6c7d9f (diff)
downloadcoinos-server-9c85d8117128a7eed4040129f8fd175f4899fcf8.tar.gz
coinos-server-9c85d8117128a7eed4040129f8fd175f4899fcf8.zip
record rate properly
Diffstat (limited to 'sendPayment.js')
-rw-r--r--sendPayment.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/sendPayment.js b/sendPayment.js
index d4391087..ee2f2c90 100644
--- a/sendPayment.js
+++ b/sendPayment.js
@@ -55,7 +55,7 @@ module.exports = (app, db, emit, seen, lna, lnb) => async (req, res) => {
amount: -total,
user_id: req.user.id,
hash,
- rate: app.get("rates").ask,
+ rate: app.get("ask"),
currency: "CAD"
},
{ transaction }