add cache to workflow counter

This commit is contained in:
2022-02-02 23:19:59 +01:00
parent 796b4ff76b
commit 211ecf1c3e
2 changed files with 66 additions and 6 deletions

View File

@@ -110,7 +110,8 @@ class EntityWorkflowRepository implements ObjectRepository
$qb->where(
$qb->expr()->andX(
$qb->expr()->isMemberOf(':user', 'step.destUser'),
$qb->expr()->isNull('step.transitionAfter')
$qb->expr()->isNull('step.transitionAfter'),
$qb->expr()->eq('step.isFinal', "'FALSE'")
)
);