summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcello Stanisci <marcello.stanisci@inria.fr>2017-02-24 20:03:55 +0100
committerMarcello Stanisci <marcello.stanisci@inria.fr>2017-02-24 20:04:21 +0100
commit5e47723160feb1ea2c765bb392ed8ec1afd03a81 (patch)
tree2d36a0fa9e3f048e53e56ea3c686027b35134d96
parent2fafedafc461e6f8d7a88632e693b78229b553f8 (diff)
downloadmerchant-5e47723160feb1ea2c765bb392ed8ec1afd03a81.tar.gz
merchant-5e47723160feb1ea2c765bb392ed8ec1afd03a81.tar.bz2
merchant-5e47723160feb1ea2c765bb392ed8ec1afd03a81.zip
Minimizing data returned by /history, for debugging
purposes.
-rw-r--r--src/backend/taler-merchant-httpd_history.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/backend/taler-merchant-httpd_history.c b/src/backend/taler-merchant-httpd_history.c
index 1190a03c..7af8c553 100644
--- a/src/backend/taler-merchant-httpd_history.c
+++ b/src/backend/taler-merchant-httpd_history.c
@@ -46,11 +46,11 @@ pd_cb (void *cls,
json_t *response = cls;
json_t *entry;
+
/*FIXME: more details to be returned*/
GNUNET_break (NULL !=
- (entry = json_pack ("{s:s, s:o}",
- "order_id", order_id,
- "proposal_data", proposal_data)));
+ (entry = json_pack ("{s:s}",
+ "order_id", order_id)));
GNUNET_break (0 == json_array_append (response, entry));
}
@@ -123,6 +123,7 @@ MH_handler_history (struct TMH_RequestHandler *rh,
return TMH_RESPONSE_reply_internal_error (connection,
TALER_EC_HISTORY_DB_FETCH_ERROR,
"db error to get history");
+
return TMH_RESPONSE_reply_json (connection,
response,
MHD_HTTP_OK);