add base repository

This commit is contained in:
liuyi 2025-06-03 13:09:31 +08:00
parent 9f88f9c731
commit 2c76c94578

View File

@ -47,7 +47,7 @@ export abstract class BaseTreeRepository<T extends ObjectLiteral> extends TreeRe
async findTrees(options?: FindTreeOptions & QueryParams<T>) {
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;
}