From 62bcac28dd3da1abe40eafb9069ea29c54ee4dbb Mon Sep 17 00:00:00 2001 From: Timo Hocker Date: Sun, 23 Aug 2020 18:35:43 +0200 Subject: [PATCH] fix order --- lib/db/log.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); },