Skip to content

Commit

Permalink
Merge pull request #447 from Midburn/fix-sync-where-id-too-long
Browse files Browse the repository at this point in the history
Update drupal_ticket_sync.js
  • Loading branch information
LeonFedotov authored May 27, 2017
2 parents e837d88 + 15c643d commit 32b9982
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/drupal_ticket_sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,13 +164,13 @@ async function updateTicket(ticket) {
}
else if (ticket['passport_id'].length > 9) {
log.error('Israeli ID is too long for user', holder_email, ' ID:', ticket['passport_id']);
return;
//return;
}
user = await User.forge({
first_name: ''+first_name,
last_name: ''+last_name,
email: holder_email,
israeli_id: ''+ticket['passport_id']
israeli_id: ''+ticket['passport_id'].slice(0, 9)
}).save();

log.info(`User ${ticket['holder_email']} created!`);
Expand Down

0 comments on commit 32b9982

Please sign in to comment.