From fea87702d5bd9a76c37d65b776d5460848a8a047 Mon Sep 17 00:00:00 2001 From: suzalflueck Date: Thu, 22 Aug 2024 10:27:45 -0700 Subject: [PATCH] fix build error --- frontend/src/common/apiService.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/common/apiService.ts b/frontend/src/common/apiService.ts index f5b6e4fd..72d91bef 100644 --- a/frontend/src/common/apiService.ts +++ b/frontend/src/common/apiService.ts @@ -1,4 +1,4 @@ -import axios, { type AxiosInstance, type AxiosRequestConfig, type AxiosResponse } from 'axios'; +import axios, { type AxiosInstance, type AxiosResponse } from 'axios'; // Buffer concurrent requests while refresh token is being acquired let failedQueue: { @@ -21,9 +21,9 @@ function processQueue(error: any, token: string | null = null): void { // Create new non-global axios instance and intercept strategy const apiAxios: AxiosInstance = axios.create(); const intercept = apiAxios.interceptors.response.use( - (config: AxiosRequestConfig) => config, + (config: AxiosResponse) => config, (error: any) => { - const originalRequest: AxiosRequestConfig = error.config; + const originalRequest: AxiosResponse = error.config; if (error.response.status !== 401) { return Promise.reject(error); }