fix select in query builder
This commit is contained in:
parent
f46b370184
commit
4385b6dc34
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ export default abstract class DynamicQueryBuilder {
|
||||||
if (queryObject.join) {
|
if (queryObject.join) {
|
||||||
for (const join of queryObject.join) {
|
for (const join of queryObject.join) {
|
||||||
let subaffix = Math.random().toString(36).substring(2);
|
let subaffix = Math.random().toString(36).substring(2);
|
||||||
query.leftJoinAndSelect(`${alias}.${join.foreignColumn}`, join.table + "_" + subaffix);
|
query.leftJoin(`${alias}.${join.foreignColumn}`, join.table + "_" + subaffix);
|
||||||
|
|
||||||
this.buildDynamicQuery(query, join, subaffix, depth + 1);
|
this.buildDynamicQuery(query, join, subaffix, depth + 1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue