chore: tidy up

This commit is contained in:
pit
2023-10-09 13:30:28 +03:00
committed by Mythie
parent 15a1c1da3f
commit 92b5111d7e
7 changed files with 15 additions and 88 deletions

View File

@ -1,4 +1,3 @@
import { getRequiredServerComponentSession } from '@documenso/lib/next-auth/get-server-session';
import { findDocuments } from '@documenso/lib/server-only/admin/get-all-documents';
import { DocumentsDataTable } from './data-table';
@ -15,10 +14,6 @@ export default async function Documents({ searchParams = {} }: DocumentsPageProp
const perPage = Number(searchParams.perPage) || 20;
const results = await findDocuments({
orderBy: {
column: 'createdAt',
direction: 'desc',
},
page,
perPage,
});