Rewrite of async logic in writer

This commit is contained in:
Will Boyd
2019-12-21 15:57:25 -05:00
parent a7b1f4c634
commit be2c62f06c
4 changed files with 89 additions and 66 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ async function init() {
try {
config = wizard.getConfig();
let posts = await parser.parseFilePromise(config)
writer.writeFiles(posts, config);
await writer.writeFilesPromise(posts, config);
} catch (ex) {
// appease the UnhandledPromiseRejectionWarning
console.error(ex);