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 Simon L.
parent 1a09d2b6a1
commit 5f06e265b2

View file

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