1
0
Fork 0
mirror of synced 2024-06-20 19:30:28 +12:00

prevent one broken app from breaking your whole install

This commit is contained in:
Martin McKeaveney 2020-11-23 15:34:23 +00:00
parent 831d19e11c
commit 76a752e3a1

View file

@ -79,7 +79,8 @@ exports.fetch = async function(ctx) {
if (apps.length === 0) {
ctx.body = []
} else {
ctx.body = await Promise.all(apps)
const response = await Promise.allSettled(apps)
ctx.body = response.filter(result => result.status === "fulfilled")
}
}