Skip to content

Commit

Permalink
removed $expr from query
Browse files Browse the repository at this point in the history
  • Loading branch information
EnvBsh committed Dec 12, 2024
1 parent 3d234c3 commit 3a13852
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions policy-service/src/policy-engine/blocks/documents-source-addon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,17 +264,15 @@ export class DocumentsSourceAddon {
__sourceTag__: {
$cond: {
if: {
$expr: {
$and: [
...filters,
{
$or: [
{ $eq: [null, '$__sourceTag__'] },
{ $not: '$__sourceTag__' }
]
}
]
}
$and: [
...filters,
{
$or: [
{ $eq: [null, '$__sourceTag__'] },
{ $not: '$__sourceTag__' }
]
}
]
},
then: ref.tag,
else: '$__sourceTag__'
Expand Down

0 comments on commit 3a13852

Please sign in to comment.