From a718f74d24c30de608139d58a4532bc9c6d72bbc Mon Sep 17 00:00:00 2001 From: Julian Krauser Date: Mon, 16 Dec 2024 17:49:30 +0100 Subject: [PATCH] nested condition --- 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 43d44c5..6bab2dc 100644 --- a/src/helpers/dynamicQueryBuilder.ts +++ b/src/helpers/dynamicQueryBuilder.ts @@ -121,7 +121,7 @@ export default abstract class DynamicQueryBuilder { query.orWhere(whereClause.query, whereClause.parameters); } } else { - if (condition.concat == "AND") { + if (condition.concat == "_" || condition.concat == "AND") { query.andWhere( condition.invert == undefined || condition.invert == true ? new Brackets((qb) => {