From 28f779a5a8bb24eb5ffd8fce0b5cd0a4e8387132 Mon Sep 17 00:00:00 2001 From: bvoiturier Date: Tue, 7 Feb 2023 16:43:36 +0100 Subject: [PATCH] feat(pollux): bump mercury version and fix queries (#357) --- pollux/lib/project/Dependencies.scala | 2 +- .../atala/pollux/sql/repository/JdbcCredentialRepository.scala | 1 - .../pollux/sql/repository/JdbcPresentationRepository.scala | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/pollux/lib/project/Dependencies.scala b/pollux/lib/project/Dependencies.scala index 230f3321a4..b125f6b882 100644 --- a/pollux/lib/project/Dependencies.scala +++ b/pollux/lib/project/Dependencies.scala @@ -8,7 +8,7 @@ object Dependencies { val prismSdk = "v1.4.1" // scala-steward:off val iris = "0.1.0" val shared = "0.2.0" - val mercury = "0.17.0" + val mercury = "0.18.0" val flyway = "9.8.3" val testContainersScalaPostgresql = "0.40.11" val quill = "4.6.0" diff --git a/pollux/lib/sql-doobie/src/main/scala/io/iohk/atala/pollux/sql/repository/JdbcCredentialRepository.scala b/pollux/lib/sql-doobie/src/main/scala/io/iohk/atala/pollux/sql/repository/JdbcCredentialRepository.scala index 987b8ebd2f..41dc16894a 100644 --- a/pollux/lib/sql-doobie/src/main/scala/io/iohk/atala/pollux/sql/repository/JdbcCredentialRepository.scala +++ b/pollux/lib/sql-doobie/src/main/scala/io/iohk/atala/pollux/sql/repository/JdbcCredentialRepository.scala @@ -172,7 +172,6 @@ class JdbcCredentialRepository(xa: Transactor[Task]) extends CredentialRepositor | issued_credential_raw | FROM public.issue_credential_records | WHERE $inClauseFragment - | LIMIT 50 """.stripMargin .query[IssueCredentialRecord] .to[Seq] diff --git a/pollux/lib/sql-doobie/src/main/scala/io/iohk/atala/pollux/sql/repository/JdbcPresentationRepository.scala b/pollux/lib/sql-doobie/src/main/scala/io/iohk/atala/pollux/sql/repository/JdbcPresentationRepository.scala index e59c1d028a..1582ab7eb4 100644 --- a/pollux/lib/sql-doobie/src/main/scala/io/iohk/atala/pollux/sql/repository/JdbcPresentationRepository.scala +++ b/pollux/lib/sql-doobie/src/main/scala/io/iohk/atala/pollux/sql/repository/JdbcPresentationRepository.scala @@ -169,7 +169,6 @@ class JdbcPresentationRepository(xa: Transactor[Task]) extends PresentationRepos | credentials_to_use | FROM public.presentation_records | WHERE $inClauseFragment - | LIMIT 50 """.stripMargin .query[PresentationRecord] .to[Seq]