From a2f67f30f8b23ba9a56892d4c361befcc364a6b9 Mon Sep 17 00:00:00 2001 From: Skylar Grant Date: Sat, 7 Jan 2023 12:45:08 -0500 Subject: [PATCH 1/2] Increment version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 5724e30..81c41bb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nodbot", - "version": "3.0.2", + "version": "3.0.3", "description": "Nods and Nod Accessories.", "main": "main.js", "dependencies": { From cc42ebe48e770cd4515813b7dbb4facfb7135d06 Mon Sep 17 00:00:00 2001 From: Skylar Grant Date: Sat, 7 Jan 2023 12:47:45 -0500 Subject: [PATCH 2/2] Fix Requests to only return 10 most recent request --- functions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.js b/functions.js index 306afc7..3f7f227 100644 --- a/functions.js +++ b/functions.js @@ -437,7 +437,7 @@ const functions = { }, download: { requests(client) { - const query = 'SELECT * FROM requests WHERE status = \'Active\' ORDER BY id ASC'; + const query = 'SELECT * FROM requests WHERE status = \'Active\' ORDER BY id DESC LIMIT 10'; db.query(query, (err, rows, fields) => { if (err) throw err; functions.collections.requests(rows, client);