Skip to content

Commit

Permalink
Gate system - fixing API (#378)
Browse files Browse the repository at this point in the history
* Adding script from eyal. and making initial adjustments

* Working script

* Working include everything to sync from Drupal

* Working include everything to sync from Drupal

* Spark integration :-)

* Code fixes after 'npm test'

* Implementing get-ticket and some sync bug fixes

* Implementing pass-ticket

* More implementations and bug fixes

* Small fixes

* Small fixes

* Fixing migrations

* Major refactoring, better implementations

* Adding pool name

* Gate UI

* Code cleanup

* Refactoring to user groups

* Camps data migration

* Migrations fix

* Migrations fix

* login bug fix - problem with camps code

* Small code reorganization

* Switching to Node 7.9.0

* Gate server development

* Migrations fix

* Bug fixes

* Bug fixes
  • Loading branch information
roy-zahor authored May 10, 2017
1 parent 95dd556 commit 29111fd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions routes/api_gate_routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ router.post('/get-ticket/', async function (req, res) {
gender: ticket.relations.holder.attributes.gender,
type: ticket.attributes.type,
inside_event: ticket.attributes.inside_event,
entrance_timestamp: ticket.attributes.entrance_timestamp.getTime(),
first_entrance_timestamp: ticket.attributes.first_entrance_timestamp.getTime(),
last_exit_timestamp: ticket.attributes.last_exit_timestamp.getTime(),
entrance_timestamp: ticket.attributes.entrance_timestamp ? ticket.attributes.entrance_timestamp.getTime() : null,
first_entrance_timestamp: ticket.attributes.first_entrance_timestamp ? ticket.attributes.first_entrance_timestamp.getTime() : null,
last_exit_timestamp: ticket.attributes.last_exit_timestamp ? ticket.attributes.last_exit_timestamp.getTime(): null,
entrance_group_id: ticket.attributes.entrance_group_id,
groups: groups
};
Expand Down

0 comments on commit 29111fd

Please sign in to comment.