Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix nested relations #7158

Merged
merged 12 commits into from
Sep 20, 2024
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export class ProcessNestedRelationsHelper {
if (Object.keys(nestedRelations).length > 0) {
await this.processNestedRelations(
objectMetadataMap,
objectMetadataMap[relationName],
objectMetadataMap[referenceObjectMetadataName],
relationResults as ObjectRecord[],
nestedRelations as Record<string, FindOptionsRelations<ObjectLiteral>>,
limit,
Expand Down Expand Up @@ -134,7 +134,7 @@ export class ProcessNestedRelationsHelper {
if (Object.keys(nestedRelations).length > 0) {
await this.processNestedRelations(
objectMetadataMap,
objectMetadataMap[relationName],
objectMetadataMap[referenceObjectMetadataName],
relationResults as ObjectRecord[],
nestedRelations as Record<string, FindOptionsRelations<ObjectLiteral>>,
limit,
Expand Down
Loading