diff --git a/delta/plugins/search/src/main/scala/ch/epfl/bluebrain/nexus/delta/plugins/search/Search.scala b/delta/plugins/search/src/main/scala/ch/epfl/bluebrain/nexus/delta/plugins/search/Search.scala index 899be3a899..c795703400 100644 --- a/delta/plugins/search/src/main/scala/ch/epfl/bluebrain/nexus/delta/plugins/search/Search.scala +++ b/delta/plugins/search/src/main/scala/ch/epfl/bluebrain/nexus/delta/plugins/search/Search.scala @@ -2,6 +2,8 @@ package ch.epfl.bluebrain.nexus.delta.plugins.search import akka.http.scaladsl.model.Uri import cats.effect.IO +import cats.implicits.catsSyntaxApplicativeId +import ch.epfl.bluebrain.nexus.delta.kernel.effect.migration._ import ch.epfl.bluebrain.nexus.delta.kernel.search.Pagination import ch.epfl.bluebrain.nexus.delta.plugins.compositeviews.CompositeViews import ch.epfl.bluebrain.nexus.delta.plugins.compositeviews.indexing.projectionIndex @@ -16,8 +18,6 @@ import ch.epfl.bluebrain.nexus.delta.sdk.identities.model.Caller import ch.epfl.bluebrain.nexus.delta.sourcing.model.Label import io.circe.{Json, JsonObject} -import ch.epfl.bluebrain.nexus.delta.kernel.effect.migration._ - trait Search { /** @@ -60,7 +60,7 @@ object Search { compositeViews .list( Pagination.OnePage, - CompositeViewSearchParams(deprecated = Some(false), filter = v => IO.pure(v.id == defaultViewId).toUIO), + CompositeViewSearchParams(deprecated = Some(false), filter = v => (v.id == defaultViewId).pure), Ordering.by(_.createdAt) ) .map(