[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] branch master updated: Outgoing payments ingestion.
From: |
gnunet |
Subject: |
[libeufin] branch master updated: Outgoing payments ingestion. |
Date: |
Tue, 09 Jun 2020 14:02:12 +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 593880f Outgoing payments ingestion.
593880f is described below
commit 593880f7767f54b232607469f82c8d0e302f7199
Author: MS <ms@taler.net>
AuthorDate: Tue Jun 9 13:59:59 2020 +0200
Outgoing payments ingestion.
no need to throw errors if a outgoing payment
was never requested via the Taler facade. This
is completely fine to happen, if e.g. one payment
(that involved the exchange bank account) is
performed using some facade-agnostic UI app.
---
nexus/src/main/kotlin/tech/libeufin/nexus/taler.kt | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/taler.kt
b/nexus/src/main/kotlin/tech/libeufin/nexus/taler.kt
index bee7cbf..9f126c0 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/taler.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/taler.kt
@@ -461,12 +461,13 @@ fun ingestTalerTransactions() {
// Outgoing payment
if (it.transactionType == "DBIT") {
logger.debug("Ingesting outgoing payment:
${it.unstructuredRemittanceInformation}")
- var talerRequested = TalerRequestedPaymentEntity.find {
+ val talerRequested = TalerRequestedPaymentEntity.find {
TalerRequestedPayments.wtid eq
it.unstructuredRemittanceInformation
- }.firstOrNull() ?: throw NexusError(
- HttpStatusCode.InternalServerError,
- "Payment '${it.unstructuredRemittanceInformation}' shows
in history, but was never requested!"
- )
+ }.firstOrNull()
+ if (talerRequested == null){
+ logger.info("Payment
'${it.unstructuredRemittanceInformation}' shows in history, but was never
requested!")
+ return@forEach
+ }
logger.debug("Payment: ${it.unstructuredRemittanceInformation}
was requested, and gets now marked as 'confirmed'")
talerRequested.rawConfirmed = it
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libeufin] branch master updated: Outgoing payments ingestion.,
gnunet <=