Skip to content

Commit

Permalink
TEMP
Browse files Browse the repository at this point in the history
  • Loading branch information
manelcecs committed May 2, 2024
1 parent 504b7c4 commit 60b6bb5
Showing 1 changed file with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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'
);
});
}

Expand All @@ -89,9 +91,7 @@ export class GetFlowIdsFromCategoryConditionsStrategyImpl
'categoryRef.categoryID',
'IN',
categoriesIdsFromShortcutFilterIN
)
.andWhere('categoryRef.objectType', 'flow')
.andWhere('flow.deletedAt', null);
).andWhere('categoryRef.objectType', 'flow');
});
}

Expand All @@ -101,9 +101,7 @@ export class GetFlowIdsFromCategoryConditionsStrategyImpl
'categoryRef.categoryID',
'NOT IN',
categoriesIdsFromShortcutFilterNOTIN
)
.andWhere('categoryRef.objectType', 'flow')
.andWhere('flow.deletedAt', null);
).andWhere('categoryRef.objectType', 'flow');
});
}

Expand Down

0 comments on commit 60b6bb5

Please sign in to comment.