aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2024-11-08 00:04:49 +0100
committerFlorian Dold <florian@dold.me>2024-11-08 00:04:49 +0100
commit02485889686a4bc36fda70f46e8ac23159b223fd (patch)
tree5da0087df5dbc1f1a1e5c804fbf2cf1df4dbc3f4
parentf38064dd2565ce5bc2f7b64f2fcca1ebdea3676d (diff)
-re-add query
-rw-r--r--src/exchange/taler-exchange-httpd_common_kyc.c24
1 files changed, 23 insertions, 1 deletions
diff --git a/src/exchange/taler-exchange-httpd_common_kyc.c b/src/exchange/taler-exchange-httpd_common_kyc.c
index 58dfcf787..9bf5039b2 100644
--- a/src/exchange/taler-exchange-httpd_common_kyc.c
+++ b/src/exchange/taler-exchange-httpd_common_kyc.c
@@ -523,6 +523,28 @@ TEH_kyc_run_measure_for_attributes (
kat->cb_cls = cb_cls;
kat->aml_history = json_array ();
kat->kyc_history = json_array ();
+
+ qs = TEH_plugin->lookup_active_legitimization (
+ TEH_plugin->cls,
+ process_row,
+ &kat->measure_index,
+ &kat->provider_name,
+ &kat->jmeasures);
+ switch (qs)
+ {
+ case GNUNET_DB_STATUS_HARD_ERROR:
+ case GNUNET_DB_STATUS_SOFT_ERROR:
+ GNUNET_break (0);
+ TEH_kyc_run_measure_cancel (kat);
+ return NULL;
+ case GNUNET_DB_STATUS_SUCCESS_NO_RESULTS:
+ GNUNET_break (0);
+ TEH_kyc_run_measure_cancel (kat);
+ return NULL;
+ case GNUNET_DB_STATUS_SUCCESS_ONE_RESULT:
+ break;
+ }
+
qs = TEH_plugin->lookup_aml_history (
TEH_plugin->cls,
account_id,
@@ -1560,7 +1582,7 @@ legitimization_check_run (
if (GNUNET_TIME_absolute_is_past (ts.abs_time))
{
const char *successor;
- struct TALER_KYCLOGIC_Measure *successor_measure;
+ const struct TALER_KYCLOGIC_Measure *successor_measure;
successor
= TALER_KYCLOGIC_rules_get_successor (lrs);