summaryrefslogtreecommitdiff
path: root/src/backend/taler-merchant-httpd_private-get-orders.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2024-01-04 01:03:34 +0100
committerChristian Grothoff <christian@grothoff.org>2024-01-04 01:03:34 +0100
commitd2d2d773cb2cc23f198d07392bab463beb2e2e04 (patch)
tree4f8eb381f1f64d47cc3668b40889416ea35fc31f /src/backend/taler-merchant-httpd_private-get-orders.c
parent881381503f7f51b294c2740e9fcf7f28ef43f973 (diff)
downloadmerchant-d2d2d773cb2cc23f198d07392bab463beb2e2e04.tar.gz
merchant-d2d2d773cb2cc23f198d07392bab463beb2e2e04.tar.bz2
merchant-d2d2d773cb2cc23f198d07392bab463beb2e2e04.zip
remove unnecessary DB interaction in GET private/orders/ID
Diffstat (limited to 'src/backend/taler-merchant-httpd_private-get-orders.c')
-rw-r--r--src/backend/taler-merchant-httpd_private-get-orders.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/backend/taler-merchant-httpd_private-get-orders.c b/src/backend/taler-merchant-httpd_private-get-orders.c
index e4f120f4..92a1f389 100644
--- a/src/backend/taler-merchant-httpd_private-get-orders.c
+++ b/src/backend/taler-merchant-httpd_private-get-orders.c
@@ -342,14 +342,12 @@ add_order (void *cls,
{
/* First try to find the order in the contracts */
uint64_t os;
- bool paid = false;
qs = TMH_db->lookup_contract_terms (TMH_db->cls,
po->instance_id,
order_id,
&contract_terms,
&os,
- &paid,
NULL);
if (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT == qs)
GNUNET_break (os == order_serial);