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) {
|
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,
|
||||||
|
|
Loading…
Reference in New Issue