From 4385b6dc34da8c8fd059d9660cf26f3e5f6cd760 Mon Sep 17 00:00:00 2001 From: Julian Krauser Date: Thu, 19 Dec 2024 12:18:52 +0100 Subject: [PATCH] fix select in query builder --- src/helpers/dynamicQueryBuilder.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/dynamicQueryBuilder.ts b/src/helpers/dynamicQueryBuilder.ts index 437fd9c..ee6ce4c 100644 --- a/src/helpers/dynamicQueryBuilder.ts +++ b/src/helpers/dynamicQueryBuilder.ts @@ -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); }