Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
console.log(' inserted records...', result.insertId);
callback(null, result);
});
};
const resultAsync = function (err, result) {
console.log(' = Inserted default records...');
// for async
done && done(err, result);
// close connection
connection.destroy();
};
async.mapSeries(dummy, iteratorAsync, resultAsync);
});
}
callback(null, result);
});
};
var resultAsync = function (err, result) {
console.log(' = Inserted category records...');
// for async
done && done(err, result);
// close connection
connection.destroy();
};
async.mapSeries(dummy, iteratorAsync, resultAsync);
}
});
}
if (!Array.isArray(proofArray) || !proofArray.length) {
throw new Error('proofArray is a required argument')
}
async function process (item, callback) {
// setTimeout(() => {
// slow this down due to rate limits?
return await that.processProofUrl(item.url,
item.username,
item.service,
item,
callback)
// }, 250)
}
async.mapSeries(proofArray, process, (err, results) => {
if (err) {
console.error(err)
return callback(err, results)
}
return callback(null, results)
})
}
}
callback(err, result);
});
};
var resultAsync = function (err, result) {
console.log(' = Inserted default records...');
// for async
done && done(err, result);
// close connection
connection.destroy();
};
async.mapSeries(dummy, iteratorAsync, resultAsync);
});
}
console.log(' inserted records...', result.insertId);
callback(null, result);
});
};
const resultAsync = function (err, result) {
console.log(' = Inserted default records...');
// for async
done && done(err, result);
// close connection
connection.destroy();
};
async.mapSeries(dummy, iteratorAsync, resultAsync);
}
});
}
callback(null, result);
});
};
var resultAsync = function (err, result) {
console.log(' = Inserted controller records...');
// for async
done && done(err, result);
// close connection
connection.destroy();
};
async.mapSeries(dummy, iteratorAsync, resultAsync);
}
});
console.log(' inserted records...');
callback(err, result);
});
};
const resultAsync = function (err, result) {
console.log(' = Inserted default records...');
// for async
done && done(err, result);
// close connection
connection.destroy();
};
async.mapSeries(dummy, iteratorAsync, resultAsync);
}
});
}
tag_related_post_id: insertPostResult['insertId'],
created_at: new Date()
};
insertTagRelatedPost(connection, tagRelatedPostData, function (err, result) {
done(err, result);
});
winston.info('Processed tag records...', affectedId);
});
};
// going sync
var tagList = teamblogData.tags.split(',');
async.mapSeries(tagList, iteratorAsync, resultAsync);
} else {
callback(err, insertPostResult);
}
});
}
prompt.get(configScheme, function (err, result) {
if (result && result.ask.toUpperCase() == 'YES') {
// reset tables!
async.mapSeries(moduleInfo, iteratorAsync, resultAsync);
} else {
console.log(' = Make database tables request canceled... \n');
}
connection.destroy();
});
});
'neo-async_v0': function(callback) {
c = 0;
neo_async_v0.mapSeries(array, iterator, callback);
},
'neo-async_v1': function(callback) {