Fix Requests to only return 10 most recent request

This commit is contained in:
Skylar Grant 2023-01-07 12:47:45 -05:00
parent a2f67f30f8
commit cc42ebe48e
1 changed files with 1 additions and 1 deletions

View File

@ -437,7 +437,7 @@ const functions = {
}, },
download: { download: {
requests(client) { 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) => { db.query(query, (err, rows, fields) => {
if (err) throw err; if (err) throw err;
functions.collections.requests(rows, client); functions.collections.requests(rows, client);