refactor: remove log

This commit is contained in:
Polianin Nikita 2024-08-24 04:25:43 +03:00
parent fd5a1cb14f
commit 48a74ecbf5

View File

@ -92,13 +92,10 @@ export default abstract class ApiService {
} }
private makeHttpRequest<Type>(method: 'get' | 'post' | 'delete' | 'put', request: RequestData): Observable<Type> { private makeHttpRequest<Type>(method: 'get' | 'post' | 'delete' | 'put', request: RequestData): Observable<Type> {
console.log(request);
if (request.needAuth) if (request.needAuth)
return this.tokenRefreshService.getTokenRefreshing$().pipe( return this.tokenRefreshService.getTokenRefreshing$().pipe(
filter(isRefreshing => !isRefreshing), filter(isRefreshing => !isRefreshing),
switchMap(() => { switchMap(() => {
console.log("I'm here!");
const token = localStorage.getItem(ApiService.tokenKey); const token = localStorage.getItem(ApiService.tokenKey);
if (token) { if (token) {