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

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 <[email protected]>
@susnux susnux added bug Something isn't working 3. to review Waiting for reviews labels Oct 29, 2024
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in 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