From 8e6bb65f26f7fe69d25481f2b0f3e62a22b0c4b7 Mon Sep 17 00:00:00 2001 From: Oliver <20188437+olivergrabinski@users.noreply.github.com> Date: Mon, 2 Oct 2023 10:06:50 +0200 Subject: [PATCH] Remove explicit conversion --- .../epfl/bluebrain/nexus/delta/plugins/search/Search.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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(