fix: update all button only updates a single app

Signed-off-by: Thomas Lamant <tom@tmlmt.com>
This commit is contained in:
Thomas Lamant 2025-11-15 02:53:35 +01:00 committed by nextcloud-command
parent 66c8f9c4dc
commit 58c6a8387b

View file

@ -351,13 +351,14 @@ export default {
})
},
updateAll() {
async updateAll() {
const limit = pLimit(1)
this.apps
const updateTasks = this.apps
.filter((app) => app.update)
.map((app) => limit(() => {
this.update(app.id)
}))
await Promise.all(updateTasks)
},
},
}