From 18541a284b57ed7f0c110f084649eb292e603e63 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 1 Aug 2021 19:18:31 +0200 Subject: -allow 0 for refund deadline --- src/exchange/taler-exchange-httpd_responses.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/exchange/taler-exchange-httpd_responses.c') diff --git a/src/exchange/taler-exchange-httpd_responses.c b/src/exchange/taler-exchange-httpd_responses.c index 72d1ddb75..66da12166 100644 --- a/src/exchange/taler-exchange-httpd_responses.c +++ b/src/exchange/taler-exchange-httpd_responses.c @@ -103,8 +103,9 @@ TEH_RESPONSE_compile_transaction_history ( &deposit->deposit_fee), GNUNET_JSON_pack_time_abs ("timestamp", deposit->timestamp), - GNUNET_JSON_pack_time_abs ("refund_deadline", - deposit->refund_deadline), + GNUNET_JSON_pack_allow_null ( + GNUNET_JSON_pack_time_abs ("refund_deadline", + deposit->refund_deadline)), GNUNET_JSON_pack_data_auto ("merchant_pub", &deposit->merchant_pub), GNUNET_JSON_pack_data_auto ("h_contract_terms", -- cgit v1.2.3