Skip to content

Commit

Permalink
Volunteers integration (#955)
Browse files Browse the repository at this point in the history
* added exitevent button

* Added timet tovolunteers api call

* fixed parsing of the volunteers result
  • Loading branch information
ArtyomKa authored May 5, 2018
1 parent d1e19db commit 0563963
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/volunteers.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module.exports = function(config_ = undefined) {
.get(EARLY_ENTRY_URL, timeout=3000)
.set('token', apiTokensConfig.token)
.query({userEmail});
let early_arrival_time = Date.parse(response.body);
let early_arrival_time = Date.parse(response.body.earlyEntranceDate);
return (!isNaN(early_arrival_time)) && early_arrival_time < Date.now();
}
catch (err) {
Expand Down

0 comments on commit 0563963

Please sign in to comment.