fix: using async with async npm

This commit is contained in:
Anthony Laibe 2019-01-29 14:48:17 +00:00
parent 4023392ea9
commit 0ddebc7a80

View File

@ -287,10 +287,11 @@ class Pipeline {
} }
async.map( async.map(
files, files,
async function (file, fileCb) { function (file, fileCb) {
self.logger.trace("reading " + file.path); self.logger.trace("reading " + file.path);
const fileContent = await file.content; file.content.then((fileContent) => {
self.runPlugins(file, fileContent, fileCb); self.runPlugins(file, fileContent, fileCb);
});
}, },
function (err, contentFiles) { function (err, contentFiles) {
if (err) { if (err) {