diff options
| author | Adam Soltys <[email protected]> | 2021-08-17 14:13:16 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2021-08-17 14:13:16 -0700 |
| commit | 23f0145fb23ecb5823a709fab5391828d0d65af6 (patch) | |
| tree | ec82a6287295dbb5afcf06869eb1a8fc47c34f60 | |
| parent | 3cad49d6d6c8213a27849cf5bef91fdfc9f21c89 (diff) | |
| download | coinos-server-23f0145fb23ecb5823a709fab5391828d0d65af6.tar.gz coinos-server-23f0145fb23ecb5823a709fab5391828d0d65af6.zip | |
order by id
| -rw-r--r-- | routes/send.js | 1 |
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); |
