fix: fix get children document

This commit is contained in:
fantasticit 2022-04-12 15:32:15 +08:00
parent f7fcc71a99
commit b536166a0a
1 changed files with 1 additions and 1 deletions

View File

@ -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,