gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libeufin] branch master updated: submitter task: avoid doubled submissi


From: gnunet
Subject: [libeufin] branch master updated: submitter task: avoid doubled submissions
Date: Mon, 08 Jun 2020 16:46:30 +0200

This is an automated email from the git hooks/post-receive script.

ms pushed a commit to branch master
in repository libeufin.

The following commit(s) were added to refs/heads/master by this push:
     new 1656ff8  submitter task: avoid doubled submissions
1656ff8 is described below

commit 1656ff8ac1ff4a70121b8ae67933a165b3dfa516
Author: MS <ms@taler.net>
AuthorDate: Mon Jun 8 16:45:29 2020 +0200

    submitter task: avoid doubled submissions
---
 integration-tests/test-taler-facade.py             | 6 +++---
 integration-tests/util.py                          | 2 +-
 nexus/src/main/kotlin/tech/libeufin/nexus/taler.kt | 3 ++-
 3 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/integration-tests/test-taler-facade.py 
b/integration-tests/test-taler-facade.py
index 5005f5b..9c8b6fe 100755
--- a/integration-tests/test-taler-facade.py
+++ b/integration-tests/test-taler-facade.py
@@ -37,8 +37,8 @@ BANK_ACCOUNT_LABEL = "savings"
 BANK_CONNECTION_LABEL = "my-ebics"
 
 # Databases
-NEXUS_DB="/tmp/test-nexus.sqlite3"
-SANDBOX_DB="/tmp/test-sandbox.sqlite3"
+NEXUS_DB="test-nexus.sqlite3"
+SANDBOX_DB="test-sandbox.sqlite3"
 
 def fail(msg):
     print(msg)
@@ -163,7 +163,7 @@ assertResponse(
             amount="EUR:1",
             exchange_base_url="http//url",
             wtid="nice",
-            credit_account="payto://iban/THEIBAN/THEBIC?name=theName"
+            credit_account="payto://iban/THEBIC/THEIBAN?name=theName"
         ),
         headers=dict(Authorization=USER_AUTHORIZATION_HEADER)
     )
diff --git a/integration-tests/util.py b/integration-tests/util.py
index ebc39a7..02cd634 100644
--- a/integration-tests/util.py
+++ b/integration-tests/util.py
@@ -18,7 +18,7 @@ def checkPort(port):
         exit(77)
 
 
-def startSandbox(dbname = "libeufin-sandbox.sqlite3"):
+def startSandbox(dbname):
     db_full_path = str(Path.cwd() / dbname)
     check_call(["rm", "-f", db_full_path])
     check_call(["../gradlew", "-p", "..", "sandbox:assemble"])
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/taler.kt 
b/nexus/src/main/kotlin/tech/libeufin/nexus/taler.kt
index 5b7990a..7b42ff0 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/taler.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/taler.kt
@@ -399,7 +399,8 @@ suspend fun submitPreparedPaymentsViaEbics() {
                 HttpStatusCode.InternalServerError,
                 "Bank account '${it.bankAccount}' not found for facade 
'${it.id.value}'"
             )
-            PreparedPaymentEntity.find { PreparedPaymentsTable.debitorIban eq 
bankAccount.iban }.forEach {
+            PreparedPaymentEntity.find { PreparedPaymentsTable.debitorIban eq 
bankAccount.iban and
+                    not(PreparedPaymentsTable.submitted) }.forEach {
                 val pain001document = createPain001document(it)
                 logger.debug("Preparing payment: ${pain001document}")
                 val subscriberDetails = 
getEbicsSubscriberDetailsInternal(subscriberEntity)

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]