commit 883148144cf4bd14576b9018ba8d283be7f8ac2b
parent e362663b75830c89f620be750d36e343b0d8ca3d
Author: Christian Grothoff <christian@grothoff.org>
Date: Tue, 7 May 2024 14:59:46 +0200
-fix DB ftbfs
Diffstat:
2 files changed, 7 insertions(+), 9 deletions(-)
diff --git a/src/exchangedb/pg_get_kyc_rules.c b/src/exchangedb/pg_get_kyc_rules.c
@@ -37,13 +37,12 @@ TEH_PG_get_kyc_rules (
= GNUNET_TIME_timestamp_get ();
struct GNUNET_PQ_QueryParam params[] = {
GNUNET_PQ_query_param_auto_from_type (h_payto),
- GNUNET_PQ_query_param_timestamp ("now",
- &now),
+ GNUNET_PQ_query_param_timestamp (&now),
GNUNET_PQ_query_param_end
};
struct GNUNET_PQ_ResultSpec rs[] = {
- GNUNET_PQ_result_spec_json ("jnew_rules",
- jrules),
+ TALER_PQ_result_spec_json ("jnew_rules",
+ jrules),
GNUNET_PQ_result_spec_end
};
diff --git a/src/exchangedb/plugin_exchangedb_postgres.c b/src/exchangedb/plugin_exchangedb_postgres.c
@@ -65,7 +65,7 @@
#include "pg_preflight.h"
#include "pg_commit.h"
#include "pg_drop_tables.h"
-#include "pg_select_satisfied_kyc_processes.h"
+#include "pg_get_kyc_rules.h"
#include "pg_select_aggregation_amounts_for_kyc_check.h"
#include "pg_kyc_provider_account_lookup.h"
#include "pg_insert_kyc_requirement_for_account.h"
@@ -488,12 +488,11 @@ libtaler_plugin_exchangedb_postgres_init (void *cls)
= &TEH_PG_preflight;
plugin->select_aggregation_amounts_for_kyc_check
= &TEH_PG_select_aggregation_amounts_for_kyc_check;
- plugin->select_satisfied_kyc_processes
- = &TEH_PG_select_satisfied_kyc_processes;
+ plugin->get_kyc_rules
+ = &TEH_PG_get_kyc_rules;
plugin->kyc_provider_account_lookup
= &TEH_PG_kyc_provider_account_lookup;
- plugin->insert_kyc_requirement_for_account
- = &TEH_PG_insert_kyc_requirement_for_account;
+ // FIXME: plugin->insert_kyc_requirement_for_account = &TEH_PG_insert_kyc_requirement_for_account;
plugin->lookup_kyc_process_by_account
= &TEH_PG_lookup_kyc_process_by_account;
plugin->update_kyc_process_by_row