feat: add import to excel
Made at the request of the customer
This commit is contained in:
@ -23,7 +23,7 @@ export enum AvailableVersion {
|
||||
|
||||
@Injectable()
|
||||
export default abstract class ApiService {
|
||||
constructor(private http: HttpClient, private notify: ToastrService, private router: Router) {
|
||||
constructor(protected http: HttpClient, protected notify: ToastrService, private router: Router) {
|
||||
}
|
||||
|
||||
private apiUrl = environment.apiUrl;
|
||||
@ -65,7 +65,7 @@ export default abstract class ApiService {
|
||||
return this.http.request<Type>(method, doneEndpoint, {
|
||||
withCredentials: request.withCredentials,
|
||||
headers: request.httpHeaders,
|
||||
body: request.data
|
||||
body: request.data,
|
||||
}).pipe(
|
||||
catchError(error => {
|
||||
if (!secondTry && error.status === 401)
|
||||
|
Reference in New Issue
Block a user