summaryrefslogtreecommitdiffstats
path: root/server/api/systemlog.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/api/systemlog.js')
-rw-r--r--server/api/systemlog.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/api/systemlog.js b/server/api/systemlog.js
index d2bd10c..4d7a69a 100644
--- a/server/api/systemlog.js
+++ b/server/api/systemlog.js
@@ -19,7 +19,7 @@ router.getAsync('', async (req, res) => {
if (req.query.clients) where.clientId = req.query.clients.split(',')
if (req.query.groups) where.groupId = req.query.groups.split(',')
if (req.query.users) where.userId = req.query.users.split(',')
- const log = await db.log.findAll({ where, include: ['client', 'group', 'user'], order: [['timestamp', 'DESC']] })
+ const log = await db.log.findAll({ where, include: ['client', 'group', 'user'], order: [['id', 'DESC']] })
log.forEach(entry => {
if (entry.clientSnapshot) entry.clientSnapshot = JSON.parse(entry.clientSnapshot)
if (entry.groupSnapshot) entry.groupSnapshot = JSON.parse(entry.groupSnapshot)