refactor: remove log
This commit is contained in:
parent
fd5a1cb14f
commit
48a74ecbf5
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user