Skip to content

Commit

Permalink
fix: cannot read properties of undefined (reading 'joinEagerRelations')
Browse files Browse the repository at this point in the history
  • Loading branch information
kyledecot committed Feb 18, 2022
1 parent 12cbfcd commit 136015b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/query-builder/RelationLoader.ts
Expand Up @@ -2,7 +2,7 @@ import {Connection} from "../connection/Connection";
import {ObjectLiteral} from "../common/ObjectLiteral";
import {QueryRunner} from "../query-runner/QueryRunner";
import {RelationMetadata} from "../metadata/RelationMetadata";
import { FindOptionsUtils } from "..";
import {FindOptionsUtils} from "../find-options/FindOptionsUtils";

/**
* Wraps entities and creates getters/setters for their relations
Expand Down Expand Up @@ -153,7 +153,7 @@ export class RelationLoader {
.setParameters(parameters);

FindOptionsUtils.joinEagerRelations(qb, qb.alias, qb.expressionMap.mainAlias!.metadata);

return qb.getMany();
}

Expand Down

0 comments on commit 136015b

Please sign in to comment.