summaryrefslogtreecommitdiff
path: root/src/backend/taler-merchant-httpd_private-post-templates.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/taler-merchant-httpd_private-post-templates.c')
-rw-r--r--src/backend/taler-merchant-httpd_private-post-templates.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/taler-merchant-httpd_private-post-templates.c b/src/backend/taler-merchant-httpd_private-post-templates.c
index 5122e2e2..1e6206bb 100644
--- a/src/backend/taler-merchant-httpd_private-post-templates.c
+++ b/src/backend/taler-merchant-httpd_private-post-templates.c
@@ -166,9 +166,9 @@ TMH_private_post_templates (const struct TMH_RequestHandler *rh,
{
bool eq;
- eq = products_equal (&tp,
+ eq = templates_equal (&tp,
&etp);
- TALER_MERCHANTDB_product_details_free (&etp);
+ TALER_MERCHANTDB_template_details_free (&etp);
TMH_db->rollback (TMH_db->cls);
GNUNET_JSON_parse_free (spec);
return eq
@@ -179,7 +179,7 @@ TMH_private_post_templates (const struct TMH_RequestHandler *rh,
0)
: TALER_MHD_reply_with_error (connection,
MHD_HTTP_CONFLICT,
- TALER_EC_MERCHANT_PRIVATE_POST_PRODUCTS_CONFLICT_PRODUCT_EXISTS,
+ TALER_EC_MERCHANT_PRIVATE_POST_TEMPLATES_CONFLICT_TEMPLATE_EXISTS,
template_id);
}
} /* end switch (qs) */