[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] branch master updated: deleting cashouts with failed TAN
From: |
gnunet |
Subject: |
[libeufin] branch master updated: deleting cashouts with failed TAN |
Date: |
Wed, 05 Apr 2023 12:32:50 +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 a9294852 deleting cashouts with failed TAN
a9294852 is described below
commit a929485254f69d7028478b0ad232227e36dc076d
Author: MS <ms@taler.net>
AuthorDate: Wed Apr 5 12:32:41 2023 +0200
deleting cashouts with failed TAN
---
sandbox/src/main/kotlin/tech/libeufin/sandbox/CircuitApi.kt | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/CircuitApi.kt
b/sandbox/src/main/kotlin/tech/libeufin/sandbox/CircuitApi.kt
index b04af23d..6b6c2be2 100644
--- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/CircuitApi.kt
+++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/CircuitApi.kt
@@ -582,9 +582,12 @@ fun circuitApi(circuitRoute: Route) {
" The command threw this exception:
${e.message}"
)
}
- if (!isSuccessful)
+ if (!isSuccessful) {
+ logger.error("Cashout ${op.uuid} failed, deleting it.")
+ transaction { op.delete() }
throw internalServerError(
"SMS TAN command failed for ${customer.phone}.")
+ }
}
SupportedTanChannels.FILE.name -> {
try {
--
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: deleting cashouts with failed TAN,
gnunet <=