summaryrefslogtreecommitdiff
path: root/src/auditor/taler-auditor-httpd_deposit-confirmation-del.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/auditor/taler-auditor-httpd_deposit-confirmation-del.c')
-rw-r--r--src/auditor/taler-auditor-httpd_deposit-confirmation-del.c24
1 files changed, 6 insertions, 18 deletions
diff --git a/src/auditor/taler-auditor-httpd_deposit-confirmation-del.c b/src/auditor/taler-auditor-httpd_deposit-confirmation-del.c
index 27c645e2b..91e9688c4 100644
--- a/src/auditor/taler-auditor-httpd_deposit-confirmation-del.c
+++ b/src/auditor/taler-auditor-httpd_deposit-confirmation-del.c
@@ -29,17 +29,16 @@ TAH_DEPOSIT_CONFIRMATION_handler_delete (struct TAH_RequestHandler *rh,
struct MHD_Connection *connection,
void **connection_cls,
const char *upload_data,
- size_t *upload_data_size)
+ size_t *upload_data_size,
+ const char *const args[])
{
- MHD_RESULT res;
+ MHD_RESULT res;
enum GNUNET_DB_QueryStatus qs;
uint64_t row_id = 0;
- // this requires param="" ?
- row_id = MHD_lookup_connection_value (connection,MHD_GET_ARGUMENT_KIND,
- "SERIAL_ID");
+ printf("args in handler: %s\n",args[1]);
if (GNUNET_SYSERR ==
TAH_plugin->preflight (TAH_plugin->cls))
@@ -50,25 +49,14 @@ TAH_DEPOSIT_CONFIRMATION_handler_delete (struct TAH_RequestHandler *rh,
TALER_EC_GENERIC_DB_SETUP_FAILED,
NULL);
}
-/*
- // use this to write to the rowid?
- if (
- (GNUNET_OK !=
- GNUNET_STRINGS_string_to_data (ps,
- strlen (ps),
- &coin_pubs[i],
- sizeof(coin_pubs[i])))) {
- // error
-
- }*/
// execute the transaction
qs = TAH_plugin->delete_deposit_confirmation (TAH_plugin->cls,row_id);
if (0 > qs)
{
- // goes in here if there was an error
+ // goes in here if there was an error with the transaction
TALER_LOG_WARNING ("xyz\n");
return TALER_MHD_reply_with_error (connection,
@@ -78,7 +66,7 @@ TAH_DEPOSIT_CONFIRMATION_handler_delete (struct TAH_RequestHandler *rh,
}
- // if an error occurs (not adapted to this specific delete)
+
// on success?
return TALER_MHD_REPLY_JSON_PACK (connection,