diff --git a/backend/canisters/local_group_index/impl/src/queries/http_request.rs b/backend/canisters/local_group_index/impl/src/queries/http_request.rs index ffd6f6b356..a2517a6708 100644 --- a/backend/canisters/local_group_index/impl/src/queries/http_request.rs +++ b/backend/canisters/local_group_index/impl/src/queries/http_request.rs @@ -36,10 +36,7 @@ fn http_request(request: HttpRequest) -> HttpResponse { let total = top_ups.iter().map(|c| c.amount).sum(); - build_json_response(&TopUps { - total, - top_ups: &top_ups, - }) + build_json_response(&TopUps { total, top_ups }) } match extract_route(&request.url) {