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 6968376 commit 6ba90fb
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 @@ -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 {
Expand Down

0 comments on commit 6ba90fb

Please sign in to comment.