diff options
Diffstat (limited to 'liquidPayments.js')
| -rw-r--r-- | liquidPayments.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/liquidPayments.js b/liquidPayments.js index afa33466..dda85232 100644 --- a/liquidPayments.js +++ b/liquidPayments.js @@ -77,7 +77,7 @@ module.exports = (app, db, addresses, payments, emit) => { hash: blinded.txid, amount: value, currency: liquid.currency, - rate: app.get("ask"), + rate: app.get("rates")[user.currency], received: true, tip, confirmed, @@ -131,7 +131,12 @@ module.exports = (app, db, addresses, payments, emit) => { await p.save(); let payments = await db.Payment.findAll({ - where: { user_id: user.id }, + where: { + user_id: user.id, + received: { + [Sequelize.Op.ne]: null + }, + }, order: [['id', 'DESC']], limit: 12 }); |
