fix: refactor document router (#1990)

This commit is contained in:
David Nguyen
2025-08-25 08:23:12 +10:00
committed by GitHub
parent adefac81e2
commit d7e5a9eec7
71 changed files with 1310 additions and 1072 deletions

View File

@ -18,7 +18,7 @@ export const TemplatePageViewRecentActivity = ({
templateId,
documentRootPath,
}: TemplatePageViewRecentActivityProps) => {
const { data, isLoading, isLoadingError, refetch } = trpc.document.findDocuments.useQuery({
const { data, isLoading, isLoadingError, refetch } = trpc.document.find.useQuery({
templateId,
orderByColumn: 'createdAt',
orderByDirection: 'asc',