diff --git a/packages/server/src/services/document.service.ts b/packages/server/src/services/document.service.ts index 0f92f277..e24d66e1 100644 --- a/packages/server/src/services/document.service.ts +++ b/packages/server/src/services/document.service.ts @@ -548,13 +548,13 @@ export class DocumentService { if (document.isWikiHome) { unSortDocuments = await this.documentRepo.find({ wikiId: document.wikiId, + parentDocumentId: null, status: DocumentStatus.public, isWikiHome: false, }); } else { unSortDocuments = await this.documentRepo.find({ wikiId: document.wikiId, - parentDocumentId: documentId, status: DocumentStatus.public, isWikiHome: false,