[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] branch master updated: simplify DB logic in auditor-htt
From: |
gnunet |
Subject: |
[taler-exchange] branch master updated: simplify DB logic in auditor-httpd |
Date: |
Fri, 17 Jan 2020 13:06:14 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository exchange.
The following commit(s) were added to refs/heads/master by this push:
new 86244830 simplify DB logic in auditor-httpd
86244830 is described below
commit 862448305cb79a62ecd1d86b63a6980b2a8fa395
Author: Christian Grothoff <address@hidden>
AuthorDate: Fri Jan 17 13:06:12 2020 +0100
simplify DB logic in auditor-httpd
---
src/auditor/taler-auditor-httpd_deposit-confirmation.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/auditor/taler-auditor-httpd_deposit-confirmation.c
b/src/auditor/taler-auditor-httpd_deposit-confirmation.c
index 5b5aa8eb..f42cc374 100644
--- a/src/auditor/taler-auditor-httpd_deposit-confirmation.c
+++ b/src/auditor/taler-auditor-httpd_deposit-confirmation.c
@@ -126,8 +126,9 @@ verify_and_execute_deposit_confirmation (struct
MHD_Connection *connection,
qs = TAH_plugin->insert_deposit_confirmation (TAH_plugin->cls,
session,
dc);
- if (GNUNET_DB_STATUS_HARD_ERROR == qs)
+ if (0 > qs)
{
+ GNUNET_break (GNUNET_DB_STATUS_HARD_ERROR == qs);
TALER_LOG_WARNING ("Failed to store /deposit-confirmation in database\n");
return TALER_MHD_reply_with_error (connection,
MHD_HTTP_INTERNAL_SERVER_ERROR,
@@ -166,7 +167,6 @@ TAH_DEPOSIT_CONFIRMATION_handler (struct TAH_RequestHandler
*rh,
int res;
struct TALER_AUDITORDB_DepositConfirmation dc;
struct TALER_AUDITORDB_ExchangeSigningKey es;
-
struct GNUNET_JSON_Specification spec[] = {
GNUNET_JSON_spec_fixed_auto ("h_contract_terms", &dc.h_contract_terms),
GNUNET_JSON_spec_fixed_auto ("h_wire", &dc.h_wire),
--
To stop receiving notification emails like this one, please contact
address@hidden.