order log

This commit is contained in:
Timo Hocker 2020-02-26 15:26:19 +01:00
parent 653cc41ff2
commit 627cfa8592

View File

@ -50,7 +50,7 @@ app.get('/', async (req, res, next) => {
}
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 headings = data.rows.length > 0 ? Object.keys(data.rows[0]) : [];