fix(proxy): updateAllProvider, some of the proxy provider update may throw

This commit is contained in:
kunish 2023-09-05 22:38:26 +08:00
parent b9184d2670
commit e09aac2f4b
No known key found for this signature in database
GPG Key ID: 647A12B4F782C430

View File

@ -109,10 +109,10 @@ export const useProxies = () => {
} }
const updateAllProvider = async () => { const updateAllProvider = async () => {
await Promise.all( await Promise.allSettled(
proxyProviders().map((provider) => { proxyProviders().map((provider) =>
return request.put(`providers/proxies/${provider.name}`) request.put(`providers/proxies/${provider.name}`),
}), ),
) )
await updateProxies() await updateProxies()
} }