mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-14 07:00:01 -04:00
Update add zp script to call APIs in series
Takes 25s instead of 10s now.
This commit is contained in:
parent
bf1b2adf6a
commit
5d09e219c0
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue