summaryrefslogtreecommitdiff
path: root/src/backend/taler-merchant-httpd_private-post-orders-ID-refund.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-post-orders-ID-refund.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-post-orders-ID-refund.c')
-rw-r--r--src/backend/taler-merchant-httpd_private-post-orders-ID-refund.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/backend/taler-merchant-httpd_private-post-orders-ID-refund.c b/src/backend/taler-merchant-httpd_private-post-orders-ID-refund.c
index 58fa96f4..67e1410b 100644
--- a/src/backend/taler-merchant-httpd_private-post-orders-ID-refund.c
+++ b/src/backend/taler-merchant-httpd_private-post-orders-ID-refund.c
@@ -150,14 +150,12 @@ TMH_private_post_orders_ID_refund (const struct TMH_RequestHandler *rh,
enum GNUNET_DB_QueryStatus qs;
uint64_t order_serial;
struct GNUNET_TIME_Timestamp refund_deadline;
- bool paid = false;
qs = TMH_db->lookup_contract_terms (TMH_db->cls,
hc->instance->settings.id,
hc->infix,
&contract_terms,
&order_serial,
- &paid,
NULL);
if (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT != qs)
{