commit 01097851c918e2ae7d520263ffaf2d0f168129b4
parent 6cc7ea10d00305f8271e93f36f95cf05fabec105
Author: Florian Dold <florian@dold.me>
Date: Sat, 7 Aug 2021 14:31:03 +0200
sandbox: do not compute balance, as implementation sometimes throws
Diffstat:
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/Scheduling.kt b/nexus/src/main/kotlin/tech/libeufin/nexus/Scheduling.kt
@@ -24,7 +24,6 @@ import com.cronutils.model.time.ExecutionTime
import com.cronutils.parser.CronParser
import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
import io.ktor.client.HttpClient
-import kotlinx.coroutines.DelicateCoroutinesApi
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.launch
import kotlinx.coroutines.time.delay
diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt b/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt
@@ -307,7 +307,9 @@ fun buildCamtString(type: Int, subscriberIban: String, history: List<RawPayment>
}
element("Amt") {
attribute("Ccy", "EUR")
- text(balanceForAccount(subscriberIban).toString())
+ // FIXME: the balance computation still not working properly
+ //text(balanceForAccount(subscriberIban).toString())
+ text("0")
}
element("CdtDbtInd") {
// a temporary value to get the camt to validate.