Skip to content

Commit

Permalink
PIN-4019 Resolved PR issue
Browse files Browse the repository at this point in the history
  • Loading branch information
nttdata-rtorsoli committed Oct 11, 2023
1 parent 6acdab2 commit ec8177c
Showing 1 changed file with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,15 +173,9 @@ object ReadModelCatalogQueries extends ReadModelQuery {
case Seq() => None
case attributes =>
Some(Filters.or {
Filters.elemMatch("data.descriptors.attributes.certified.0", Filters.in("id", attributes.map(_.toString)))
Filters.elemMatch("data.descriptors.attributes.certified.1", Filters.in("id", attributes.map(_.toString)))

Filters.elemMatch("data.descriptors.attributes.declared.0", Filters.in("id", attributes.map(_.toString)))
Filters.elemMatch("data.descriptors.attributes.declared.1", Filters.in("id", attributes.map(_.toString)))

Filters.elemMatch("data.descriptors.attributes.verified.0", Filters.in("id", attributes.map(_.toString)))
Filters.elemMatch("data.descriptors.attributes.verified.1", Filters.in("id", attributes.map(_.toString)))

Filters.elemMatch("data.descriptors.attributes.certified", Filters.elemMatch("id", Filters.in("id", attributes.map(_.toString))))
Filters.elemMatch("data.descriptors.attributes.declared", Filters.elemMatch("id", Filters.in("id", attributes.map(_.toString))))
Filters.elemMatch("data.descriptors.attributes.verified", Filters.elemMatch("id", Filters.in("id", attributes.map(_.toString))))
})
}
val nameFilter =
Expand Down

0 comments on commit ec8177c

Please sign in to comment.