refactor(server): merge PageModel into DocModel (#10592)

This commit is contained in:
fengmk2
2025-03-05 11:32:04 +00:00
parent 0015bfbaf2
commit b247b8e26c
5 changed files with 178 additions and 89 deletions

View File

@@ -256,7 +256,7 @@ export class WorkspaceResolver {
@Parent() workspace: WorkspaceType,
@Args('pageId') pageId: string
) {
const metadata = await this.models.doc.getMeta(workspace.id, pageId);
const metadata = await this.models.doc.getAuthors(workspace.id, pageId);
if (!metadata) {
throw new DocNotFound({ spaceId: workspace.id, docId: pageId });
}