mirror of
https://github.com/p-stream/p-stream.git
synced 2026-03-25 22:18:40 +00:00
add fallback group order for old backends
This commit is contained in:
parent
8ec869c688
commit
33a67ed883
1 changed files with 5 additions and 0 deletions
|
|
@ -25,5 +25,10 @@ export function getGroupOrder(url: string, account: AccountWithToken) {
|
|||
method: "GET",
|
||||
baseURL: url,
|
||||
headers: getAuthHeaders(account.token),
|
||||
}).catch((err) => {
|
||||
if (err?.response?.status === 404) {
|
||||
return { groupOrder: [] };
|
||||
}
|
||||
throw err;
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue