diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-07-24 09:12:52 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-07-24 09:12:52 +0200 |
commit | fb23045fe1d062cd4f26f3265ac94ded47660abd (patch) | |
tree | b2c4f905f989aaca17830d18a1f7616753800993 /src/backend/taler-merchant-httpd_private-post-products.c | |
parent | f9fc9f73df9eb5544882815abe0afe8d789a4ef6 (diff) | |
download | merchant-fb23045fe1d062cd4f26f3265ac94ded47660abd.tar.gz merchant-fb23045fe1d062cd4f26f3265ac94ded47660abd.tar.bz2 merchant-fb23045fe1d062cd4f26f3265ac94ded47660abd.zip |
implement #6939 transformation
Diffstat (limited to 'src/backend/taler-merchant-httpd_private-post-products.c')
-rw-r--r-- | src/backend/taler-merchant-httpd_private-post-products.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/backend/taler-merchant-httpd_private-post-products.c b/src/backend/taler-merchant-httpd_private-post-products.c index 4cf97fd0..4227c826 100644 --- a/src/backend/taler-merchant-httpd_private-post-products.c +++ b/src/backend/taler-merchant-httpd_private-post-products.c @@ -91,6 +91,7 @@ TMH_private_post_products (const struct TMH_RequestHandler *rh, GNUNET_JSON_spec_string ("unit", (const char **) &pd.unit), TALER_JSON_spec_amount ("price", + TMH_currency, &pd.price), GNUNET_JSON_spec_mark_optional ( GNUNET_JSON_spec_string ("image", @@ -124,17 +125,6 @@ TMH_private_post_products (const struct TMH_RequestHandler *rh, : MHD_NO; } } - if (0 != - strcasecmp (pd.price.currency, - TMH_currency)) - { - GNUNET_break_op (0); - GNUNET_JSON_parse_free (spec); - return TALER_MHD_reply_with_error (connection, - MHD_HTTP_CONFLICT, - TALER_EC_GENERIC_CURRENCY_MISMATCH, - TMH_currency); - } if (total_stock < -1) { GNUNET_break_op (0); |