prevent one broken app from breaking your whole install
This commit is contained in:
parent
f9785a69a2
commit
9823243c11
|
@ -79,7 +79,8 @@ exports.fetch = async function(ctx) {
|
||||||
if (apps.length === 0) {
|
if (apps.length === 0) {
|
||||||
ctx.body = []
|
ctx.body = []
|
||||||
} else {
|
} else {
|
||||||
ctx.body = await Promise.all(apps)
|
const response = await Promise.allSettled(apps)
|
||||||
|
ctx.body = response.filter(result => result.status === "fulfilled")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue