fix: fix all biome
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { HttpHeaders, HttpParams } from '@ngify/http';
|
||||
import { Injectable, inject } from 'injection-js';
|
||||
import { Observable } from 'rxjs';
|
||||
import { OpenIdConfiguration } from '../config/openid-configuration';
|
||||
import type { Observable } from 'rxjs';
|
||||
import type { OpenIdConfiguration } from '../config/openid-configuration';
|
||||
import { HttpBaseService } from './http-base.service';
|
||||
|
||||
const NGSW_CUSTOM_PARAM = 'ngsw-bypass';
|
||||
@@ -41,10 +41,10 @@ export class DataService {
|
||||
|
||||
headers = headers.set('Accept', 'application/json');
|
||||
|
||||
if (!!token) {
|
||||
if (token) {
|
||||
headers = headers.set(
|
||||
'Authorization',
|
||||
'Bearer ' + decodeURIComponent(token)
|
||||
`Bearer ${decodeURIComponent(token)}`
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,11 +1,9 @@
|
||||
import { HttpClient } from '@ngify/http';
|
||||
import { Injectable, inject } from 'injection-js';
|
||||
import { Observable } from 'rxjs';
|
||||
import type { Observable } from 'rxjs';
|
||||
|
||||
@Injectable()
|
||||
export class HttpBaseService {
|
||||
constructor() {}
|
||||
|
||||
private readonly http = inject(HttpClient);
|
||||
|
||||
get<T>(url: string, params?: { [key: string]: unknown }): Observable<T> {
|
||||
|
||||
Reference in New Issue
Block a user