Fix Requests to only return 10 most recent request
This commit is contained in:
parent
a2f67f30f8
commit
cc42ebe48e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user