Skip to content

Commit

Permalink
fix: upgrade scala version
Browse files Browse the repository at this point in the history
  • Loading branch information
Pat Losoponkul committed Sep 29, 2023
1 parent f775bd0 commit 81e3688
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import org.scoverage.coveralls.Imports.CoverallsKeys.*
inThisBuild(
Seq(
organization := "io.iohk.atala",
scalaVersion := "3.3.0",
scalaVersion := "3.3.1",
fork := true,
run / connectInput := true,
releaseUseGlobalVersion := false,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package io.iohk.atala.pollux.sql.model.db

import io.getquill.InsertMeta

import io.getquill.*
import io.getquill.doobie.DoobieContext
import io.iohk.atala.shared.models.WalletId
Expand Down Expand Up @@ -31,7 +29,6 @@ object VerificationPolicySql extends DoobieContext.Postgres(SnakeCase) {
import io.iohk.atala.pollux.sql.repository.VerificationPolicyExtensions._

def insert(verificationPolicy: VerificationPolicy) = {
inline given InsertMeta[VerificationPolicy] = insertMeta(exclude = _.id, _.createdAt, _.updatedAt)
run(quote(query[VerificationPolicy].insertValue(lift(verificationPolicy)).returning(vp => vp)))
}

Expand Down Expand Up @@ -83,8 +80,6 @@ object VerificationPolicySql extends DoobieContext.Postgres(SnakeCase) {
)

def update(verificationPolicy: VerificationPolicy, nonce: Int) =
// TODO, compiler marks this import as unused, since it is new to scala 3 it can be broken for givens or this given is indeed unused
inline given UpdateMeta[VerificationPolicy] = updateMeta(exclude = _.id)
run(
quote(
query[VerificationPolicy]
Expand Down

0 comments on commit 81e3688

Please sign in to comment.