commit 6c0057f56364535d516404d1b5c6b948a3a9b460
parent f88f87b15c246417bb4dbf97850229a22f56b07a
Author: Martin Schanzenbach <schanzen@gnunet.org>
Date: Sat, 15 Nov 2025 16:56:33 +0100
statistics: fix incorrect singular key
Diffstat:
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/backend/taler-merchant-httpd_private-get-statistics-amount-SLUG.c b/src/backend/taler-merchant-httpd_private-get-statistics-amount-SLUG.c
@@ -79,7 +79,7 @@ amount_by_bucket (void *cls,
"range",
bucket_range),
GNUNET_JSON_pack_array_steal (
- "cumulative_amount",
+ "cumulative_amounts",
amount_array))));
if (NULL == json_object_get (root,
"buckets_description"))
@@ -139,7 +139,7 @@ amount_by_interval (void *cls,
"start_time",
bucket_start),
GNUNET_JSON_pack_array_steal (
- "cumulative_amount",
+ "cumulative_amounts",
amount_array))));
if (NULL == json_object_get (root,
"intervals_description"))
diff --git a/src/backenddb/pg_lookup_statistics_amount_by_bucket.c b/src/backenddb/pg_lookup_statistics_amount_by_bucket.c
@@ -95,7 +95,7 @@ lookup_statistics_amount_by_bucket_cb (void *cls,
&bucket_end_epoch),
GNUNET_PQ_result_spec_string ("bucket_range",
&bucket_range),
- TALER_PQ_result_spec_amount_with_currency ("cumulative_amount",
+ TALER_PQ_result_spec_amount_with_currency ("cumulative_amounts",
&cumulative_amount),
GNUNET_PQ_result_spec_end
};
diff --git a/src/lib/merchant_api_get_statistics.c b/src/lib/merchant_api_get_statistics.c
@@ -152,7 +152,7 @@ parse_intervals_and_buckets_amt (
struct GNUNET_JSON_Specification spec[] = {
GNUNET_JSON_spec_timestamp ("start_time",
&jinterval->start_time),
- GNUNET_JSON_spec_array_const ("cumulative_amount",
+ GNUNET_JSON_spec_array_const ("cumulative_amounts",
&amounts_arr),
GNUNET_JSON_spec_end ()
};
@@ -205,7 +205,7 @@ parse_intervals_and_buckets_amt (
&jbucket->end_time),
GNUNET_JSON_spec_string ("range",
&jbucket->range),
- GNUNET_JSON_spec_array_const ("cumulative_amount",
+ GNUNET_JSON_spec_array_const ("cumulative_amounts",
&amounts_arr),
GNUNET_JSON_spec_end ()
};