From 60b6bb51340fd723e4f80d835a8e746d06dab9ce Mon Sep 17 00:00:00 2001 From: manelcecs Date: Tue, 30 Apr 2024 14:53:09 +0200 Subject: [PATCH] TEMP --- ...Ids-flow-category-conditions-strategy-impl.ts | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/domain-services/flows/strategy/impl/get-flowIds-flow-category-conditions-strategy-impl.ts b/src/domain-services/flows/strategy/impl/get-flowIds-flow-category-conditions-strategy-impl.ts index 021df0e1..a3badd73 100644 --- a/src/domain-services/flows/strategy/impl/get-flowIds-flow-category-conditions-strategy-impl.ts +++ b/src/domain-services/flows/strategy/impl/get-flowIds-flow-category-conditions-strategy-impl.ts @@ -67,6 +67,7 @@ export class GetFlowIdsFromCategoryConditionsStrategyImpl .queryBuilder() .distinct('flow.id', 'flow.versionID') .from('flow') + .where('flow.deletedAt', null) .join('categoryRef', function () { this.on('flow.id', '=', 'categoryRef.objectID').andOn( 'flow.versionID', @@ -77,9 +78,10 @@ export class GetFlowIdsFromCategoryConditionsStrategyImpl if (categoriesIds.length > 0) { joinQuery = joinQuery.andWhere(function () { - this.where('categoryRef.categoryID', 'IN', categoriesIds) - .andWhere('categoryRef.objectType', 'flow') - .andWhere('flow.deletedAt', null); + this.where('categoryRef.categoryID', 'IN', categoriesIds).andWhere( + 'categoryRef.objectType', + 'flow' + ); }); } @@ -89,9 +91,7 @@ export class GetFlowIdsFromCategoryConditionsStrategyImpl 'categoryRef.categoryID', 'IN', categoriesIdsFromShortcutFilterIN - ) - .andWhere('categoryRef.objectType', 'flow') - .andWhere('flow.deletedAt', null); + ).andWhere('categoryRef.objectType', 'flow'); }); } @@ -101,9 +101,7 @@ export class GetFlowIdsFromCategoryConditionsStrategyImpl 'categoryRef.categoryID', 'NOT IN', categoriesIdsFromShortcutFilterNOTIN - ) - .andWhere('categoryRef.objectType', 'flow') - .andWhere('flow.deletedAt', null); + ).andWhere('categoryRef.objectType', 'flow'); }); }