feat: update API client and remove unused services; enhance error handling and configuration
This commit is contained in:
@@ -81,7 +81,7 @@ export class BaseApiClient implements ApiClient {
|
||||
throw createApiError(retryResponse, errorData)
|
||||
}
|
||||
|
||||
return await this.safeParseJSON(retryResponse)
|
||||
return await this.safeParseJSON(retryResponse) as T
|
||||
} catch (refreshError) {
|
||||
this.handleAuthenticationFailure()
|
||||
throw refreshError
|
||||
@@ -97,7 +97,7 @@ export class BaseApiClient implements ApiClient {
|
||||
return {} as T
|
||||
}
|
||||
|
||||
return await this.safeParseJSON(response)
|
||||
return await this.safeParseJSON(response) as T
|
||||
} catch (error) {
|
||||
clearTimeout(timeoutId)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user