Update add zp script to call APIs in series

Takes 25s instead of 10s now.
This commit is contained in:
Matt Lott 2016-07-06 13:21:43 -07:00
parent bf1b2adf6a
commit 5d09e219c0

View file

@ -173,7 +173,7 @@ function getZPRepliedContacts(done) {
for (let i = 1; (i - 1) * zpPageSize < total; i++) {
tasks.push(createGetZPLeadsPage(contacts, i));
}
async.parallel(tasks, (err, results) => {
async.series(tasks, (err, results) => {
if (err) return done(err);
const emailContactMap = {};
for (const contact of contacts) {