summaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-httpd_management_aml-officers.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-01-21 23:08:29 +0100
committerChristian Grothoff <christian@grothoff.org>2023-01-21 23:08:29 +0100
commitd131951fbe09b3415c9976acd11f660d51493086 (patch)
treee4c00b01e03de90f1d3f691ea248178195f1ebc2 /src/exchange/taler-exchange-httpd_management_aml-officers.c
parent31286b66f253c62ab3c33827490b55a4cc025608 (diff)
downloadexchange-d131951fbe09b3415c9976acd11f660d51493086.tar.gz
exchange-d131951fbe09b3415c9976acd11f660d51493086.tar.bz2
exchange-d131951fbe09b3415c9976acd11f660d51493086.zip
add new endpoints to main dispatcher
Diffstat (limited to 'src/exchange/taler-exchange-httpd_management_aml-officers.c')
-rw-r--r--src/exchange/taler-exchange-httpd_management_aml-officers.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/exchange/taler-exchange-httpd_management_aml-officers.c b/src/exchange/taler-exchange-httpd_management_aml-officers.c
index 139ccdb25..b82c18d47 100644
--- a/src/exchange/taler-exchange-httpd_management_aml-officers.c
+++ b/src/exchange/taler-exchange-httpd_management_aml-officers.c
@@ -92,14 +92,15 @@ TEH_handler_management_aml_officers (
struct GNUNET_TIME_Timestamp last_date;
do {
- qs = TEH_plugin->set_aml_officer (TEH_plugin->cls,
- &officer_pub,
- officer_name,
- change_date,
- is_active,
- read_only,
- &master_sig,
- &last_date);
+ // FIXME: bound loop!
+ qs = TEH_plugin->insert_aml_officer (TEH_plugin->cls,
+ &officer_pub,
+ &master_sig,
+ officer_name,
+ is_active,
+ read_only,
+ change_date,
+ &last_date);
} while (GNUNET_DB_STATUS_SOFT_ERROR == qs);
if (qs < 0)
{
@@ -107,13 +108,13 @@ TEH_handler_management_aml_officers (
return TALER_MHD_reply_with_error (connection,
MHD_HTTP_INTERNAL_SERVER_ERROR,
TALER_EC_GENERIC_DB_STORE_FAILED,
- "XXX");
+ "insert_aml_officer");
}
if (GNUNET_TIME_timestamp_cmp (last_date,
>,
change_date))
{
- GNUNER_break_op (0);
+ GNUNET_break_op (0);
return TALER_MHD_reply_with_error (
connection,
MHD_HTTP_CONFLICT,