libeufin

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

commit 10e5010f4e647a562912e4d0a8b9d4d87d0f827f
parent 9a111273b44b88809ae4c095bf98dffcfda284c6
Author: Marcello Stanisci <stanisci.m@gmail.com>
Date:   Sat, 11 Jan 2020 11:26:23 +0100

remove unneeded conversion

Diffstat:
Msandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt | 5+----
1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt b/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt @@ -118,7 +118,6 @@ private fun ApplicationCall.handleEbicsC52(header: EbicsRequest.Header): ByteArr val od = header.static.orderDetails ?: throw Exception("Need 'OrderDetails'") val op = od.orderParams ?: throw Exception("Need 'StandardOrderParams'") - val subscriber = transaction { EbicsSubscriberEntity.find { stringParam(userId) eq EbicsSubscribersTable.userId // will have to match partner and system IDs @@ -153,9 +152,7 @@ private fun ApplicationCall.handleEbicsC52(header: EbicsRequest.Header): ByteArr } } } - - val str = XMLUtil.convertJaxbToString(ret) - return str.toByteArray() + return ret.toByteArray() } private suspend fun ApplicationCall.handleEbicsHia(header: EbicsUnsecuredRequest.Header, orderData: ByteArray) {