commit b31804f28e24b9a5399b52a75fc0e30645e588e6
parent a47fe8380d8048a3629b385d9e336e80eecd9885
Author: MS <ms@taler.net>
Date: Thu, 14 May 2020 19:23:03 +0200
fix DB statement
Diffstat:
2 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/integration-tests/test-ebics-new.py b/integration-tests/test-ebics-new.py
@@ -237,8 +237,12 @@ assertResponse(
#2.c, fetch bank account information
assertResponse(
post(
- "http://localhost:5001/ebics/subscribers/{}/fetch-accounts".format(USERNAME),
- json=dict()
+ "http://localhost:5001/bank-transports/syncHTD",
+ json=dict(
+ type="ebics",
+ name="my-ebics"
+ ),
+ headers=dict(Authorization=USER_AUTHORIZATION_HEADER)
)
)
@@ -246,7 +250,7 @@ nexus.terminate()
sandbox.terminate()
exit(44)
-#3
+#3, request history to Nexus
assertResponse(
post(
"http://localhost:5001/ebics/subscribers/{}/collect-transactions-c53".format(USERNAME),
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt b/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt
@@ -135,7 +135,7 @@ suspend fun handleEbicsSendMSG(
}
BankAccountMapEntity.new {
ebicsSubscriber = getEbicsTransport(userId, transportId)
- this.nexusUser = nexusUser
+ this.nexusUser = getNexusUser(userId)
this.bankAccount = bankAccount
}
}