Fix prior archive filter collisions

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-17 17:49:51 +03:30
co-authored by Cursor
parent e86841fc60
commit bc68582fe2
6 changed files with 76 additions and 39 deletions
+8 -4
View File
@@ -399,10 +399,14 @@ Rules:
activity: () =>
this.prisma.activity.count({
where: {
organizationId: orgId,
...assigneeWhere(actor),
...created,
...activityPriorWhere(actor.priorLens, actor.priorCutoff),
AND: [
{
organizationId: orgId,
...created,
},
assigneeWhere(actor),
activityPriorWhere(actor.priorLens, actor.priorCutoff),
],
},
}),
ticket: () =>