Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIO-7615: Add option to migrate pdf files to copy and migrate commands #79

Merged
merged 5 commits into from
Feb 25, 2025

Conversation

mikekotikov
Copy link
Contributor

@mikekotikov mikekotikov commented Nov 14, 2024

src/copy.js Outdated
return cb();
};

// For each source form, copy the components after uniquifying them.
async.eachSeries(sourceForms, function(src, cb) {
fetch(options)({
url: src
}).then(({body: form}) => {
copyComponents(form, cb);
}).then(async({body: form}) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a minor issue but I don't love mixing modalities here - can we either use all async/await or stick with promise chaining here? I think if it were me I'd stick with promise chaining, because refactoring this file (and potentially others) to async/await would be a lot of work, whereas it's relatively clean and easy to use promise chaining here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@brendanbond brendanbond merged commit c8b97b7 into master Feb 25, 2025
@brendanbond brendanbond deleted the feat/FIO-7615_cli_tool_migrate_pdfs branch February 25, 2025 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants