aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2021-08-17 14:13:16 -0700
committerAdam Soltys <[email protected]>2021-08-17 14:13:16 -0700
commit23f0145fb23ecb5823a709fab5391828d0d65af6 (patch)
treeec82a6287295dbb5afcf06869eb1a8fc47c34f60
parent3cad49d6d6c8213a27849cf5bef91fdfc9f21c89 (diff)
downloadcoinos-server-23f0145fb23ecb5823a709fab5391828d0d65af6.tar.gz
coinos-server-23f0145fb23ecb5823a709fab5391828d0d65af6.zip
order by id
-rw-r--r--routes/send.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/routes/send.js b/routes/send.js
index 9b4396ef..1a9783e0 100644
--- a/routes/send.js
+++ b/routes/send.js
@@ -85,6 +85,7 @@ module.exports = ah(async (req, res, next) => {
let text = address || payreq;
params = {
where: { user_id: recipient.id },
+ order: [["id", "DESC"]],
};
if (text) params.where.text = text;
let invoice = await db.Invoice.findOne(params);