Fix prior archive filter collisions
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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: () =>
|
||||
|
||||
Reference in New Issue
Block a user