commit f2c77b756a4abc61eaa30ed77e7f477b869cd09e
parent b8cf98ca44d426a9ff89887576d2964ea8c98a85
Author: Christian Grothoff <christian@grothoff.org>
Date: Wed, 7 May 2025 22:53:27 +0200
fix array/object confusion (#9889)
Diffstat:
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/exchange/taler-exchange-httpd_legitimization-measures-get.c b/src/exchange/taler-exchange-httpd_legitimization-measures-get.c
@@ -42,7 +42,7 @@
* @param cls closure
* @param h_payto hash of account the measure applies to
* @param start_time when was the process started
- * @param jmeasures array of measures that are active
+ * @param jmeasures object of type ``LegitimizationMeasures``
* @param is_finished true if the measure was finished
* @param measure_serial_id row ID of the measure in the exchange table
*/
@@ -69,8 +69,8 @@ record_cb (
GNUNET_JSON_pack_timestamp ("start_time",
start_time),
GNUNET_JSON_pack_allow_null (
- GNUNET_JSON_pack_array_incref ("measures",
- (json_t *) jmeasures)),
+ GNUNET_JSON_pack_object_incref ("measures",
+ (json_t *) jmeasures)),
GNUNET_JSON_pack_bool ("is_finished",
is_finished)
)));
diff --git a/src/include/taler_exchangedb_plugin.h b/src/include/taler_exchangedb_plugin.h
@@ -3371,7 +3371,7 @@ typedef void
* @param cls closure
* @param h_payto hash of account the measure applies to
* @param start_time when was the process started
- * @param jmeasures array of measures that are active
+ * @param jmeasures object of type ``LegitimizationMeasures``
* @param is_finished true if the measure was finished
* @param measure_serial_id row ID of the measure in the exchange table
*/