aboutsummaryrefslogtreecommitdiffstats
path: root/bitcoinPayments.js
diff options
context:
space:
mode:
Diffstat (limited to 'bitcoinPayments.js')
-rw-r--r--bitcoinPayments.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/bitcoinPayments.js b/bitcoinPayments.js
index fc29e1d5..1ff402a2 100644
--- a/bitcoinPayments.js
+++ b/bitcoinPayments.js
@@ -130,7 +130,9 @@ module.exports = (app, bc, db, addresses, payments, emit) => {
await p.save();
let payments = await db.Payment.findAll({
- where: { user_id: user.id }
+ where: { user_id: user.id },
+ order: [['id', 'DESC']],
+ limit: 20
});
emit(user.username, "payments", payments);