mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-11-24 09:45:35 +08:00
fix(proxy): updateAllProvider, some of the proxy provider update may throw
This commit is contained in:
parent
b9184d2670
commit
e09aac2f4b
@ -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()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user