From ec8177c32f19200b317e9392315a3d6f7a304522 Mon Sep 17 00:00:00 2001 From: nttdata-rtorsoli Date: Wed, 11 Oct 2023 11:13:28 +0200 Subject: [PATCH] PIN-4019 Resolved PR issue --- .../common/readmodel/ReadModelCatalogQueries.scala | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/main/scala/it/pagopa/interop/catalogprocess/common/readmodel/ReadModelCatalogQueries.scala b/src/main/scala/it/pagopa/interop/catalogprocess/common/readmodel/ReadModelCatalogQueries.scala index c1940e2b..c483e92d 100644 --- a/src/main/scala/it/pagopa/interop/catalogprocess/common/readmodel/ReadModelCatalogQueries.scala +++ b/src/main/scala/it/pagopa/interop/catalogprocess/common/readmodel/ReadModelCatalogQueries.scala @@ -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 =