diff options
author | Christian Grothoff <christian@grothoff.org> | 2024-11-16 17:48:26 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2024-11-16 17:48:26 +0100 |
commit | 800279788f6a6c3ee0a4912ed6e0331017537298 (patch) | |
tree | 2580d5e107edb80173f103e1c4f2c37ff8f95561 /src/backend/taler-merchant-httpd_private-post-orders.c | |
parent | 0cafdf5efce0a115753e4109c657b4532900ab03 (diff) |
adapt merchant to taler-config splitHEADv0.14.1-dev.2master
Diffstat (limited to 'src/backend/taler-merchant-httpd_private-post-orders.c')
-rw-r--r-- | src/backend/taler-merchant-httpd_private-post-orders.c | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/src/backend/taler-merchant-httpd_private-post-orders.c b/src/backend/taler-merchant-httpd_private-post-orders.c index 2b2931f1..a39e3202 100644 --- a/src/backend/taler-merchant-httpd_private-post-orders.c +++ b/src/backend/taler-merchant-httpd_private-post-orders.c @@ -886,36 +886,36 @@ execute_transaction (struct OrderContext *oc) } { - enum GNUNET_DB_QueryStatus qs; + enum GNUNET_DB_QueryStatus wqs; json_t *jhook; - jhook = GNUNET_JSON_PACK( - GNUNET_JSON_pack_string("order_id", - oc->parse_order.order_id), - GNUNET_JSON_pack_object_incref("contract", - oc->serialize_order.contract), - GNUNET_JSON_pack_string("instance_id", - oc->hc->instance->settings.id) - ); - GNUNET_assert(NULL != jhook); + jhook = GNUNET_JSON_PACK ( + GNUNET_JSON_pack_string ("order_id", + oc->parse_order.order_id), + GNUNET_JSON_pack_object_incref ("contract", + oc->serialize_order.contract), + GNUNET_JSON_pack_string ("instance_id", + oc->hc->instance->settings.id) + ); + GNUNET_assert (NULL != jhook); - qs = TMH_trigger_webhook(oc->hc->instance->settings.id, - "order_created", - jhook); + wqs = TMH_trigger_webhook (oc->hc->instance->settings.id, + "order_created", + jhook); - json_decref(jhook); + json_decref (jhook); - if (0 < qs) + if (0 < wqs) { TMH_db->rollback (TMH_db->cls); - if (GNUNET_DB_STATUS_SOFT_ERROR == qs) - return qs; - GNUNET_break (GNUNET_DB_STATUS_HARD_ERROR == qs); + if (GNUNET_DB_STATUS_SOFT_ERROR == wqs) + return wqs; + GNUNET_break (GNUNET_DB_STATUS_HARD_ERROR == wqs); reply_with_error (oc, MHD_HTTP_INTERNAL_SERVER_ERROR, TALER_EC_GENERIC_DB_STORE_FAILED, "failed to trigger webhooks"); - return qs; + return wqs; } } |