const async = require("async");
async.eachSeries(updates, (up, next) => {
techEntriesList.push(up.entryId);
if (up.subJobType && up.userId) {
up.jobId = jobId;
updatePeopleWithCallback(jobId, up, jobUpdates, (err, technician) => {
if (technician) technicianList.push(technician);
console.log(Date.now());
next();
return;
});
}
});
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter