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 86dfc6e612..87341eb7a1 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 @@ -3,7 +3,8 @@ package io.iohk.atala.pollux.sql.repository import cats.data.NonEmptyList import cats.instances.seq import doobie.* -import doobie.implicits.* +import doobie.implicits._ +import doobie.postgres.implicits._ import io.circe._ import io.circe.parser._ import io.circe.syntax._ @@ -47,14 +48,10 @@ class JdbcCredentialRepository(xa: Transactor[Task], maxRetries: Int) extends Cr // given logHandler: LogHandler = LogHandler.jdkLogHandler import IssueCredentialRecord._ - // given uuidGet: Get[UUID] = Get[String].map(UUID.fromString) - // given uuidPut: Put[UUID] = Put[String].contramap(_.toString()) given didCommIDGet: Get[DidCommID] = Get[String].map(DidCommID(_)) given didCommIDPut: Put[DidCommID] = Put[String].contramap(_.value) - import doobie.postgres.implicits.JavaTimeInstantMeta - given protocolStateGet: Get[ProtocolState] = Get[String].map(ProtocolState.valueOf) given protocolStatePut: Put[ProtocolState] = Put[String].contramap(_.toString) 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 1fa0193b70..af01adc8a3 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 @@ -70,9 +70,6 @@ class JdbcPresentationRepository( given didCommIDGet: Get[DidCommID] = Get[String].map(DidCommID(_)) given didCommIDPut: Put[DidCommID] = Put[String].contramap(_.value) - given instantGet: Get[Instant] = Get[Long].map(Instant.ofEpochSecond) - given instantPut: Put[Instant] = Put[Long].contramap(_.getEpochSecond()) - given protocolStateGet: Get[ProtocolState] = Get[String].map(ProtocolState.valueOf) given protocolStatePut: Put[ProtocolState] = Put[String].contramap(_.toString)