commit c94bab2e11c15913b74a1f328c83a0325436cf00
parent dc5fda177230a133c80b4b477c4d6a381c65ee11
Author: Marcello Stanisci <stanisci.m@gmail.com>
Date: Tue, 24 Mar 2020 16:58:50 +0100
Try avoiding loop.
Trying to statically build a mock camt.053 response,
without looping over the transactions in the database.
Temporary change.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt b/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt
@@ -275,7 +275,7 @@ fun buildCamtString(history: SizedIterable<BankTransactionEntity>, type: Int): S
text(now.toDashedDate())
}
}
- history.forEach {
+ // history.forEach {
element("Ntry") {
element("Amt")
element("CdtDbtInd") {
@@ -387,7 +387,7 @@ fun buildCamtString(history: SizedIterable<BankTransactionEntity>, type: Int): S
text("additional information not given")
}
}
- }
+ // }
}
}
}