From 23f0145fb23ecb5823a709fab5391828d0d65af6 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 17 Aug 2021 14:13:16 -0700 Subject: order by id --- routes/send.js | 1 + 1 file changed, 1 insertion(+) 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); -- cgit v1.2.3