summaryrefslogtreecommitdiff
path: root/src/exchangedb/pg_insert_kyc_requirement_process.c
diff options
context:
space:
mode:
authorÖzgür Kesim <oec-taler@kesim.org>2023-07-23 15:57:37 +0200
committerÖzgür Kesim <oec-taler@kesim.org>2023-07-23 15:57:37 +0200
commit5b39ac9d8f7cf8c8a446fd51061b2d3bbaa31173 (patch)
treec1b765e8d49a0f5fcea49a66d91cf2d032f0253b /src/exchangedb/pg_insert_kyc_requirement_process.c
parentd189fccd790a36046e1191d7170f45feb3dfb122 (diff)
downloadexchange-5b39ac9d8f7cf8c8a446fd51061b2d3bbaa31173.tar.gz
exchange-5b39ac9d8f7cf8c8a446fd51061b2d3bbaa31173.tar.bz2
exchange-5b39ac9d8f7cf8c8a446fd51061b2d3bbaa31173.zip
[kyc] put reserve_pub into legitimization_requirements
Diffstat (limited to 'src/exchangedb/pg_insert_kyc_requirement_process.c')
-rw-r--r--src/exchangedb/pg_insert_kyc_requirement_process.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/exchangedb/pg_insert_kyc_requirement_process.c b/src/exchangedb/pg_insert_kyc_requirement_process.c
index ddd765b99..97b82eff6 100644
--- a/src/exchangedb/pg_insert_kyc_requirement_process.c
+++ b/src/exchangedb/pg_insert_kyc_requirement_process.c
@@ -33,7 +33,6 @@ TEH_PG_insert_kyc_requirement_process (
const char *provider_section,
const char *provider_account_id,
const char *provider_legitimization_id,
- const struct TALER_ReservePublicKeyP *reserve_pub,
uint64_t *process_row)
{
struct PostgresClosure *pg = cls;
@@ -46,9 +45,6 @@ TEH_PG_insert_kyc_requirement_process (
(NULL != provider_legitimization_id)
? GNUNET_PQ_query_param_string (provider_legitimization_id)
: GNUNET_PQ_query_param_null (),
- (NULL != reserve_pub)
- ? GNUNET_PQ_query_param_auto_from_type (reserve_pub)
- : GNUNET_PQ_query_param_null (),
GNUNET_PQ_query_param_end
};
struct GNUNET_PQ_ResultSpec rs[] = {
@@ -65,14 +61,12 @@ TEH_PG_insert_kyc_requirement_process (
" ,provider_section"
" ,provider_user_id"
" ,provider_legitimization_id"
- " ,reserve_pub"
" ) VALUES "
- " ($1, $2, $3, $4, $5)"
+ " ($1, $2, $3, $4)"
" ON CONFLICT (h_payto,provider_section) "
" DO UPDATE SET"
" provider_user_id=$3"
" ,provider_legitimization_id=$4"
- " ,reserve_pub=$5"
" RETURNING legitimization_process_serial_id");
return GNUNET_PQ_eval_prepared_singleton_select (
pg->conn,