mirror of https://github.com/fantasticit/think.git
fix: fix get children document
This commit is contained in:
parent
f7fcc71a99
commit
b536166a0a
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue