From 15c643dc89f0f111afcd3afb0d5ae46818283951 Mon Sep 17 00:00:00 2001 From: Leon Fedotov Date: Sat, 27 May 2017 13:33:04 +0300 Subject: [PATCH] Update drupal_ticket_sync.js --- scripts/drupal_ticket_sync.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/drupal_ticket_sync.js b/scripts/drupal_ticket_sync.js index ba364bab9..3bb927268 100644 --- a/scripts/drupal_ticket_sync.js +++ b/scripts/drupal_ticket_sync.js @@ -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!`);