mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-01-14 12:14:33 +01:00
change response status
This commit is contained in:
@@ -86,7 +86,7 @@ async function RequestWrapper<T = never>(url: string): Promise<AxiosResponse<T>>
|
||||
}
|
||||
request = await axios.get<T>(url, options)
|
||||
|
||||
if (request.status === 401) {
|
||||
if (request.status !== 200) {
|
||||
await regenerateTokens()
|
||||
request = await axios.get<T>(url, options)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user