libeufin

Integration and sandbox testing for FinTech APIs and data formats
Log | Files | Refs | Submodules | README | LICENSE

commit 0f559fc895234dfb9d8a0bb2cdaf4f90f738926e
parent f2ae067fc100089907f06ac947c2b70c55aa157c
Author: MS <ms@taler.net>
Date:   Tue, 16 Jun 2020 18:05:28 +0200

fix db access

Diffstat:
Mnexus/src/main/kotlin/tech/libeufin/nexus/Main.kt | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt b/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt @@ -202,7 +202,7 @@ fun requireBankConnection(call: ApplicationCall, parameterKey: String): NexusBan if (name == null) { throw NexusError(HttpStatusCode.InternalServerError, "no parameter for bank connection") } - val conn = NexusBankConnectionEntity.findById(name) + val conn = transaction { NexusBankConnectionEntity.findById(name) } if (conn == null) { throw NexusError(HttpStatusCode.NotFound, "bank connection '$name' not found") }