From f733ce222a5675379f49871dcae692f3597206f2 Mon Sep 17 00:00:00 2001 From: Matt Lott Date: Tue, 24 May 2016 16:10:29 -0700 Subject: [PATCH 1/3] Update inbound lead importing Assigning lower priority EU leads to NL contact Fix bug where we sent intl emails to US leads Send Dutch emails to NL and BE low priority leads --- package.json | 1 + scripts/updateCloseIoLeads.js | 111 ++++++++++++++++++++++++++++------ 2 files changed, 94 insertions(+), 18 deletions(-) diff --git a/package.json b/package.json index aa192cae7..fc326df34 100644 --- a/package.json +++ b/package.json @@ -100,6 +100,7 @@ "coffeelint-brunch": "^1.7.1", "commonjs-require-definition": "0.2.0", "compressible": "~1.0.1", + "country-data": "0.0.24", "country-list": "0.0.3", "css-brunch": "^1.7.0", "fs-extra": "^0.26.2", diff --git a/scripts/updateCloseIoLeads.js b/scripts/updateCloseIoLeads.js index 84c19c83f..68ddd783b 100644 --- a/scripts/updateCloseIoLeads.js +++ b/scripts/updateCloseIoLeads.js @@ -1,8 +1,8 @@ // Upsert new lead data into Close.io 'use strict'; -if (process.argv.length !== 8) { - log("Usage: node