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

View File

@ -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);