Retrieve seasons in descending order
parent
c0ab9d4581
commit
07c4d9b622
|
@ -32,7 +32,7 @@ async function remove(id) {
|
||||||
async function retrieveAll() {
|
async function retrieveAll() {
|
||||||
const query = `SELECT *
|
const query = `SELECT *
|
||||||
FROM scores.seasons
|
FROM scores.seasons
|
||||||
ORDER BY school_year;`;
|
ORDER BY school_year DESC;`;
|
||||||
const table = await database.executeQuery(query);
|
const table = await database.executeQuery(query);
|
||||||
|
|
||||||
const seasonsList = [];
|
const seasonsList = [];
|
||||||
|
|
Reference in New Issue