From 6ba90fb961d6b9d6d49dd8868440a61baf7b211c Mon Sep 17 00:00:00 2001 From: Roy Zahor Date: Thu, 18 May 2017 16:53:31 +0300 Subject: [PATCH] Update api_gate_routes.js Bug fix --- routes/api_gate_routes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/api_gate_routes.js b/routes/api_gate_routes.js index ff0df2dfe..1c0088d23 100644 --- a/routes/api_gate_routes.js +++ b/routes/api_gate_routes.js @@ -47,7 +47,7 @@ async function getTicketBySearchTerms(req, res) { let searchTerms; if (req.body.barcode) { searchTerms = {event_id: event_id, barcode: req.body.barcode}; - } else if (req.params.ticket && req.params.order) { + } else if (req.body.ticket && req.body.order) { searchTerms = {event_id: event_id, ticket: req.body.ticket, order: req.body.order}; } else {