From 66cbb95386179d0b5a3c2d5ada27e9a349918059 Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 8 Apr 2019 02:27:06 +0900 Subject: [PATCH] Fix bug --- src/server/api/endpoints/admin/logs.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/api/endpoints/admin/logs.ts b/src/server/api/endpoints/admin/logs.ts index eee56a393..907b1fdc1 100644 --- a/src/server/api/endpoints/admin/logs.ts +++ b/src/server/api/endpoints/admin/logs.ts @@ -65,7 +65,7 @@ export default define(meta, async (ps) => { } } - const logs = await query.take(ps.limit).getMany(); + const logs = await query.orderBy('log.createdAt', 'DESC').take(ps.limit).getMany(); return logs; });