mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-01 02:13:33 +00:00
Bump ts-rest
This commit is contained in:
parent
f58552be84
commit
5295c69f46
6 changed files with 19 additions and 12 deletions
|
|
@ -178,6 +178,7 @@ export const ssApiClient = (args: {
|
|||
|
||||
return {
|
||||
body: result.data['subsonic-response'],
|
||||
headers: result.headers as any,
|
||||
status: result.status,
|
||||
};
|
||||
} catch (e: Error | AxiosError | any) {
|
||||
|
|
@ -187,10 +188,9 @@ export const ssApiClient = (args: {
|
|||
const error = e as AxiosError;
|
||||
const response = error.response as AxiosResponse;
|
||||
|
||||
console.log(response, 'response');
|
||||
|
||||
return {
|
||||
body: response?.data,
|
||||
headers: response.headers as any,
|
||||
status: response?.status,
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue