fix select in query builder

This commit is contained in:
Julian Krauser 2024-12-19 12:18:52 +01:00
parent f46b370184
commit 4385b6dc34

View file

@ -100,7 +100,7 @@ export default abstract class DynamicQueryBuilder {
if (queryObject.join) {
for (const join of queryObject.join) {
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);
}