mapCb -> eachCb

This commit is contained in:
Michael Bradley, Jr 2018-08-20 13:39:45 -05:00
parent 04a5e3335d
commit 382122c6d9

View File

@ -151,11 +151,11 @@ class Pipeline {
targetDir = targetDir + '/';
}
async.each(contentFiles, function (file, mapCb) {
async.each(contentFiles, function (file, eachCb) {
let filename = file.filename.replace(file.basedir + '/', '');
self.logger.info("writing file " + (utils.joinPath(self.buildDir, targetDir, filename)).bold.dim);
fs.copy(file.path, utils.joinPath(self.buildDir, targetDir, filename), {overwrite: true}, mapCb);
fs.copy(file.path, utils.joinPath(self.buildDir, targetDir, filename), {overwrite: true}, eachCb);
}, cb);
return;
}