diff options
author | Florian Dold <florian@dold.me> | 2024-06-16 17:44:20 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2024-06-16 17:44:20 +0200 |
commit | 92001c4385f0d5cb43b5c3ee589629f0da420e34 (patch) | |
tree | 55749c6415b2b5e00dc5a8ad64e38b889c7b335f /src/backend/taler-merchant-httpd_private-patch-templates-ID.c | |
parent | 4f91af9910c31259b546b96cb01e49f9a944e10c (diff) |
remove redundant required_currency field/column
Diffstat (limited to 'src/backend/taler-merchant-httpd_private-patch-templates-ID.c')
-rw-r--r-- | src/backend/taler-merchant-httpd_private-patch-templates-ID.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/backend/taler-merchant-httpd_private-patch-templates-ID.c b/src/backend/taler-merchant-httpd_private-patch-templates-ID.c index e8a6c531..80b3dfc6 100644 --- a/src/backend/taler-merchant-httpd_private-patch-templates-ID.c +++ b/src/backend/taler-merchant-httpd_private-patch-templates-ID.c @@ -113,10 +113,6 @@ TMH_private_patch_templates_ID (const struct TMH_RequestHandler *rh, GNUNET_JSON_spec_json ("template_contract", &tp.template_contract), GNUNET_JSON_spec_mark_optional ( - GNUNET_JSON_spec_string ("required_currency", - (const char **) &tp.required_currency), - NULL), - GNUNET_JSON_spec_mark_optional ( GNUNET_JSON_spec_json ("editable_defaults", &tp.editable_defaults), NULL), @@ -146,28 +142,6 @@ TMH_private_patch_templates_ID (const struct TMH_RequestHandler *rh, TALER_EC_GENERIC_PARAMETER_MALFORMED, "template_contract"); } - if ( (NULL != tp.required_currency) && - (GNUNET_OK != - TALER_check_currency (tp.required_currency)) ) - { - GNUNET_break_op (0); - GNUNET_JSON_parse_free (spec); - return TALER_MHD_reply_with_error (connection, - MHD_HTTP_BAD_REQUEST, - TALER_EC_GENERIC_PARAMETER_MALFORMED, - "required_currency"); - } - if ( (NULL != tp.required_currency) && - (NULL != json_object_get (tp.template_contract, - "amount")) ) - { - GNUNET_break_op (0); - GNUNET_JSON_parse_free (spec); - return TALER_MHD_reply_with_error (connection, - MHD_HTTP_BAD_REQUEST, - TALER_EC_GENERIC_PARAMETER_MALFORMED, - "required_currency and contract::amount specified"); - } if (NULL != tp.editable_defaults) { const char *key; |