Skip to content
New issue

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

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

Already on GitHub? # to your account

fix: Fix adding children to directory (file tree) for batch uploading #1463

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

susnux
Copy link
Contributor

@susnux susnux commented Oct 29, 2024

addChild is asynchronous and needs to be awaited, as readEntries is also async. This means it can not be done in the constructor but we need to handle this separately.

So instead just add a addChildren helper method and await this function where needed.

`addChild` is asynchronous and needs to be awaited, as `readEntries` is
also async. This means it can not be done in the constructor but we need
to handle this separately.

So instead just add a `addChildren` helper method and await this
function where needed.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux susnux added bug Something isn't working 3. to review Waiting for reviews labels Oct 29, 2024
@susnux susnux requested review from artonge, skjnldsv and Pytal October 29, 2024 19:02
Copy link

codecov bot commented Oct 29, 2024

Bundle Report

Changes will increase total bundle size by 850 bytes (0.11%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
@nextcloud/upload-esm 380.7kB 424 bytes (0.11%) ⬆️
@nextcloud/upload-esm-cjs 384.06kB 426 bytes (0.11%) ⬆️

@skjnldsv skjnldsv merged commit 8e4fd5e into main Nov 5, 2024
18 checks passed
@skjnldsv skjnldsv deleted the fix/batch-upload branch November 5, 2024 15:50
@skjnldsv skjnldsv mentioned this pull request Nov 13, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
3. to review Waiting for reviews bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants