Skip to content

Commit

Permalink
fix listEServicesFilters
Browse files Browse the repository at this point in the history
  • Loading branch information
beetlecrunch committed Oct 12, 2023
1 parent 02dc354 commit da47bfc
Showing 1 changed file with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,18 @@ object ReadModelCatalogQueries extends ReadModelQuery {
case Seq() => None
case attributes =>
Some(Filters.or {
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))))
Filters.elemMatch(
"data.descriptors.attributes",
Filters.elemMatch("certified", Filters.elemMatch("id", Filters.in("id", attributes.map(_.toString))))
)
Filters.elemMatch(
"data.descriptors.attributes",
Filters.elemMatch("declared", Filters.elemMatch("id", Filters.in("id", attributes.map(_.toString))))
)
Filters.elemMatch(
"data.descriptors.attributes",
Filters.elemMatch("verified", Filters.elemMatch("id", Filters.in("id", attributes.map(_.toString))))
)
})
}
val nameFilter =
Expand Down

0 comments on commit da47bfc

Please sign in to comment.