From b536166a0a64c567bf497268c9f09c23da081263 Mon Sep 17 00:00:00 2001 From: fantasticit Date: Tue, 12 Apr 2022 15:32:15 +0800 Subject: [PATCH] fix: fix get children document --- packages/server/src/services/document.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,