From d7d6773455c798e62ed43e7c7bac89abdf1a0fb7 Mon Sep 17 00:00:00 2001 From: thalles Date: Fri, 30 Jul 2021 09:41:11 -0300 Subject: [PATCH] fix promise Signed-off-by: thalles --- licence.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/licence.js b/licence.js index 96ea626..f1f505b 100644 --- a/licence.js +++ b/licence.js @@ -148,10 +148,10 @@ const checkLicense = async (fileNames, config) => { ) const filesFiltered = removeIgnoredFiles(filesPr, fileNames) const filesWithYear = await Promise.all(filesFiltered.map( - (file) => { + async (file) => { return { ...file, - year : getCreationYear(file, config) + year : await getCreationYear(file, config) } })) console.log(filesWithYear)