Skip to content

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
@susnux susnux requested review from Pytal, artonge and skjnldsv October 29, 2024 19:02
@codecov
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
@skjnldsv skjnldsv deleted the fix/batch-upload branch November 5, 2024 15:50
@skjnldsv skjnldsv mentioned this pull request Nov 13, 2024
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.

3 participants