Skip to content

Commit

Permalink
Update api_gate_routes.js
Browse files Browse the repository at this point in the history
Bug fix
  • Loading branch information
roy-zahor authored May 18, 2017
1 parent 6ba90fb commit 4926993
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/api_gate_routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ async function getTicketBySearchTerms(req, res) {
if (req.body.barcode) {
searchTerms = {event_id: event_id, barcode: req.body.barcode};
} else if (req.body.ticket && req.body.order) {
searchTerms = {event_id: event_id, ticket: req.body.ticket, order: req.body.order};
searchTerms = {event_id: event_id, ticket_id: req.body.ticket, order_id: req.body.order};
}
else {
return sendError(res, 500, "BAD_SEARCH_PARAMETERS");
Expand Down

0 comments on commit 4926993

Please sign in to comment.