order log
This commit is contained in:
parent
653cc41ff2
commit
627cfa8592
2
index.js
2
index.js
@ -50,7 +50,7 @@ app.get('/', async (req, res, next) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const data = await pg.query(
|
const data = await pg.query(
|
||||||
`SELECT "ID", "Timestamp", "Type", "App", "Client", "Message", "Misc", "Stack" FROM "Log"`
|
`SELECT "ID", "Timestamp", "Type", "App", "Client", "Message", "Misc", "Stack" FROM "Log" ORDER BY "Timestamp" ASC`
|
||||||
);
|
);
|
||||||
const rows = [];
|
const rows = [];
|
||||||
const headings = data.rows.length > 0 ? Object.keys(data.rows[0]) : [];
|
const headings = data.rows.length > 0 ? Object.keys(data.rows[0]) : [];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user