From d6242057230f32773f9f05a1fd7ec3588bedcb17 Mon Sep 17 00:00:00 2001 From: chronark Date: Thu, 10 Oct 2024 11:43:15 +0200 Subject: [PATCH] fix: order audit logs by time, show latest on top --- apps/dashboard/app/(app)/audit/[bucket]/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/dashboard/app/(app)/audit/[bucket]/page.tsx b/apps/dashboard/app/(app)/audit/[bucket]/page.tsx index e6114ff6e1..237c2af876 100644 --- a/apps/dashboard/app/(app)/audit/[bucket]/page.tsx +++ b/apps/dashboard/app/(app)/audit/[bucket]/page.tsx @@ -82,7 +82,7 @@ export default async function AuditPage(props: Props) { with: { targets: true, }, - orderBy: (table, { asc }) => asc(table.id), + orderBy: (table, { desc }) => desc(table.time), limit: 100, }, },