mirror of
https://github.com/10h30/wordpress-export-to-markdown.git
synced 2026-07-18 22:23:41 +09:00
Rewrite of async logic in writer
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user