diff --git a/lib/db/log.js b/lib/db/log.js index a411f20..de7bb99 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 ({ column: 'timestamp', order: 'desc' }) + .orderBy ('timestamp', 'desc') .limit (Math.min (limit, 10000)) .offset (offset); },