add base repository
This commit is contained in:
parent
9f88f9c731
commit
2c76c94578
@ -47,7 +47,7 @@ export abstract class BaseTreeRepository<T extends ObjectLiteral> extends TreeRe
|
|||||||
|
|
||||||
async findTrees(options?: FindTreeOptions & QueryParams<T>) {
|
async findTrees(options?: FindTreeOptions & QueryParams<T>) {
|
||||||
const roots = await this.findRoots(options);
|
const roots = await this.findRoots(options);
|
||||||
await Promise.all(root.map((root) => this.findDescendantsTree(root, options)));
|
await Promise.all(roots.map((root) => this.findDescendantsTree(root, options)));
|
||||||
return roots;
|
return roots;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user