Skip to content
This repository has been archived by the owner on Jan 9, 2024. It is now read-only.

Commit

Permalink
fix: transaction context error (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeplotean authored Oct 24, 2023
1 parent 8e3fc18 commit 71af59a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/kotlin/id/walt/service/account/AccountsService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,11 @@ object AccountsService {
}
}

private fun queryDefaultIssuer(name: String) =
transaction { Issuers.select(Issuers.name eq name) }.singleOrNull()?.let {
private fun queryDefaultIssuer(name: String) = transaction {
Issuers.select(Issuers.name eq name).singleOrNull()?.let {
it[Issuers.id]
}?.value
}

fun authenticate(request: LoginRequest): Result<AuthenticationResult> = runCatching {
when (request) {
Expand Down

0 comments on commit 71af59a

Please sign in to comment.