diff options
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 |
commit | 5b39ac9d8f7cf8c8a446fd51061b2d3bbaa31173 (patch) | |
tree | c1b765e8d49a0f5fcea49a66d91cf2d032f0253b /src/exchangedb/pg_insert_records_by_table.c | |
parent | d189fccd790a36046e1191d7170f45feb3dfb122 (diff) | |
download | exchange-5b39ac9d8f7cf8c8a446fd51061b2d3bbaa31173.tar.gz exchange-5b39ac9d8f7cf8c8a446fd51061b2d3bbaa31173.tar.bz2 exchange-5b39ac9d8f7cf8c8a446fd51061b2d3bbaa31173.zip |
[kyc] put reserve_pub into legitimization_requirements
Diffstat (limited to 'src/exchangedb/pg_insert_records_by_table.c')
-rw-r--r-- | src/exchangedb/pg_insert_records_by_table.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/exchangedb/pg_insert_records_by_table.c b/src/exchangedb/pg_insert_records_by_table.c index a8b71759c..ebac7cee0 100644 --- a/src/exchangedb/pg_insert_records_by_table.c +++ b/src/exchangedb/pg_insert_records_by_table.c @@ -229,7 +229,7 @@ irbt_cb_table_legitimization_processes (struct PostgresClosure *pg, ",provider_user_id" ",provider_legitimization_id" ") VALUES " - "($1, $2, $3, $4, $5, $6);"); + "($1, $3, $4, $5, $6, %7);"); return GNUNET_PQ_eval_prepared_non_select (pg->conn, "insert_into_table_legitimization_processes", params); @@ -251,6 +251,10 @@ irbt_cb_table_legitimization_requirements (struct PostgresClosure *pg, GNUNET_PQ_query_param_uint64 (&td->serial), GNUNET_PQ_query_param_auto_from_type ( &td->details.legitimization_requirements.h_payto), + td->details.legitimization_requirements.no_reserve_pub + ? GNUNET_PQ_query_param_null () + : GNUNET_PQ_query_param_auto_from_type ( + &td->details.legitimization_requirements.reserve_pub), GNUNET_PQ_query_param_string ( td->details.legitimization_requirements.required_checks), GNUNET_PQ_query_param_end @@ -261,6 +265,7 @@ irbt_cb_table_legitimization_requirements (struct PostgresClosure *pg, "INSERT INTO legitimization_requirements" "(legitimization_requirement_serial_id" ",h_payto" + ",reserve_pub" ",required_checks" ") VALUES " "($1, $2, $3);"); |