🔩 Tweaking filters

This commit is contained in:
2021-05-05 10:13:35 -07:00
parent 59567231a1
commit 82140a7e39
2 changed files with 20 additions and 18 deletions

View File

@@ -21,7 +21,7 @@ export const greet = async (
};
const fileObjects = await walkFolder("./comics");
const extractedDataPromises = _.map(fileObjects, async (fileObject) => {
{
if (SUPPORTED_COMIC_ARCHIVES.includes(fileObject.extension)) {
return await extractCoverFromComicBookArchive({
...targetOptions,
@@ -30,7 +30,5 @@ export const greet = async (
});
}
});
Promise.all(extractedDataPromises).then((data) => {
console.log(data);
});
};