feat: add separate document audit page

This commit is contained in:
David Nguyen
2024-02-22 19:13:35 +11:00
parent 48321f2f62
commit 34825aaf3a
6 changed files with 349 additions and 1 deletions

View File

@ -133,9 +133,10 @@ export const documentRouter = router({
.input(ZFindDocumentAuditLogsQuerySchema)
.query(async ({ input, ctx }) => {
try {
const { perPage, documentId, cursor, filterForRecentActivity, orderBy } = input;
const { page, perPage, documentId, cursor, filterForRecentActivity, orderBy } = input;
return await findDocumentAuditLogs({
page,
perPage,
documentId,
cursor,