From 0ddebc7a809ef0358442f0ac22b692c43f0fd8e5 Mon Sep 17 00:00:00 2001 From: Anthony Laibe Date: Tue, 29 Jan 2019 14:48:17 +0000 Subject: [PATCH] fix: using async with async npm --- src/lib/modules/pipeline/index.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/lib/modules/pipeline/index.js b/src/lib/modules/pipeline/index.js index 8633dd38c..818ccdffd 100644 --- a/src/lib/modules/pipeline/index.js +++ b/src/lib/modules/pipeline/index.js @@ -287,10 +287,11 @@ class Pipeline { } async.map( files, - async function (file, fileCb) { + function (file, fileCb) { self.logger.trace("reading " + file.path); - const fileContent = await file.content; - self.runPlugins(file, fileContent, fileCb); + file.content.then((fileContent) => { + self.runPlugins(file, fileContent, fileCb); + }); }, function (err, contentFiles) { if (err) {