fix: fix get children document

pull/26/head
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) { if (document.isWikiHome) {
unSortDocuments = await this.documentRepo.find({ unSortDocuments = await this.documentRepo.find({
wikiId: document.wikiId, wikiId: document.wikiId,
parentDocumentId: null,
status: DocumentStatus.public, status: DocumentStatus.public,
isWikiHome: false, isWikiHome: false,
}); });
} else { } else {
unSortDocuments = await this.documentRepo.find({ unSortDocuments = await this.documentRepo.find({
wikiId: document.wikiId, wikiId: document.wikiId,
parentDocumentId: documentId, parentDocumentId: documentId,
status: DocumentStatus.public, status: DocumentStatus.public,
isWikiHome: false, isWikiHome: false,