diff --git a/lib/db/log.js b/lib/db/log.js index 5f37220..a411f20 100644 --- a/lib/db/log.js +++ b/lib/db/log.js @@ -18,7 +18,7 @@ module.exports = (get_db) => ({ ) .from ('log') .where ({ app_id }) - .orderBy ('timestamp') + .orderBy ({ column: 'timestamp', order: 'desc' }) .limit (Math.min (limit, 10000)) .offset (offset); },