diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-08-01 19:18:31 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-08-01 19:18:35 +0200 |
commit | 18541a284b57ed7f0c110f084649eb292e603e63 (patch) | |
tree | e00abc102486ad4164742ea3205cb04d8419a51f /src/exchange/taler-exchange-httpd_responses.c | |
parent | ac96733695ecc0ebe8e582e3230f2a95c89712bc (diff) | |
download | exchange-18541a284b57ed7f0c110f084649eb292e603e63.tar.gz exchange-18541a284b57ed7f0c110f084649eb292e603e63.tar.bz2 exchange-18541a284b57ed7f0c110f084649eb292e603e63.zip |
-allow 0 for refund deadline
Diffstat (limited to 'src/exchange/taler-exchange-httpd_responses.c')
-rw-r--r-- | src/exchange/taler-exchange-httpd_responses.c | 5 |
1 files changed, 3 insertions, 2 deletions
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", |