commit f0c83f821bbc418dcfc822f439e5a5b67b93d683
parent 9ca3c129cdba5e71e3d2f93b05099ba8bb6f85e3
Author: ms <ms@taler.net>
Date: Mon, 20 Mar 2023 15:43:33 +0100
indentation
Diffstat:
2 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/Anastasis.kt b/nexus/src/main/kotlin/tech/libeufin/nexus/Anastasis.kt
@@ -66,11 +66,15 @@ fun anastasisFilter(payment: NexusBankTransactionEntity, txDtls: TransactionDeta
// Handle a /taler-wire-gateway/history/incoming request.
private suspend fun historyIncoming(call: ApplicationCall) {
val facadeId = expectNonNull(call.parameters["fcid"])
- call.request.requirePermission(PermissionQuery("facade", facadeId, "facade.anastasis.history"))
+ call.request.requirePermission(
+ PermissionQuery(
+ "facade",
+ facadeId,
+ "facade.anastasis.history"
+ )
+ )
val param = call.expectUrlParameter("delta")
- val delta: Int = try {
- param.toInt()
- } catch (e: Exception) {
+ val delta: Int = try { param.toInt() } catch (e: Exception) {
throw EbicsProtocolError(HttpStatusCode.BadRequest, "'${param}' is not Int")
}
val start: Long = handleStartArgument(call.request.queryParameters["start"], delta)
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt b/nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt
@@ -409,7 +409,7 @@ val nexusApp: Application.() -> Unit = {
requireSuperuser(call.request)
call.respond(
HttpStatusCode.OK,
- BankProtocolsResponse(listOf("ebics", "loopback"))
+ BankProtocolsResponse(listOf("ebics"))
)
return@get
}