commit 79a47cc7a849fff8acb2551ee5303eac7fa720a9 parent 51a35c93230f8f0fbac258a392479cef13cb002a Author: MS <ms@taler.net> Date: Tue, 31 Aug 2021 09:05:33 -1100 fix DB query Diffstat:
| M | sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt | | | 5 | ++++- |
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt b/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt @@ -483,7 +483,10 @@ private fun constructCamtResponse( */ if (dateRange != null) { BankAccountStatementEntity.find { - BankAccountStatementsTable.creationTime.between(dateRange.first, dateRange.second) + BankAccountStatementsTable.creationTime.between( + dateRange.first, + dateRange.second) and( + BankAccountStatementsTable.bankAccount eq bankAccount.id) }.forEach { ret.add(it.xmlMessage) } } else { /**