Skip to content

Commit

Permalink
fix: make sure PSQL duplicate key error is correctly surfaced as an u…
Browse files Browse the repository at this point in the history
…nmanaged error

Signed-off-by: Benjamin Voiturier <[email protected]>
  • Loading branch information
bvoiturier committed Sep 19, 2024
1 parent 0a17d72 commit 4097041
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,11 @@ class JdbcDIDNonSecretStorage(xa: Transactor[ContextAwareTask], xb: Transactor[T
_ <- insertHdKeyIO.updateMany(randKeyValues(now))
} yield ()

for {
(for {
walletCtx <- ZIO.service[WalletAccessContext]
now <- Clock.instant
_ <- txnIO(now, walletCtx.walletId).transactWallet(xa)
} yield ()
} yield ()).orDie
}

override def updateManagedDID(did: PrismDID, patch: ManagedDIDStatePatch): RIO[WalletAccessContext, Unit] = {
Expand Down

0 comments on commit 4097041

Please sign in to comment.