Skip to content

Commit

Permalink
Merge pull request #402 from sancsoft/Fix-Lint-Error-01-13-2025
Browse files Browse the repository at this point in the history
Fixed linter error
  • Loading branch information
rmaffitsancsoft authored Jan 13, 2025
2 parents 1ae263a + 9c8968c commit c749e6e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
8 changes: 5 additions & 3 deletions src/angular/hq/src/app/psr/psrlist/psrList.service.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
/* eslint-disable rxjs/no-implicit-any-catch */
import {
BehaviorSubject,
Observable,
Expand All @@ -7,11 +9,11 @@ import {
debounceTime,
finalize,
map,
of,
startWith,
switchMap,
takeUntil,
tap,
throwError,
} from 'rxjs';
import { GetPSRTimeRecordStaffV1 } from '../../models/PSR/get-psr-time-v1';
import { HQService } from '../../services/hq.service';
Expand Down Expand Up @@ -138,11 +140,11 @@ export class PsrListService extends BaseListService<
tap(() => this.loadingSubject.next(true)),
switchMap((request) =>
this.hqService.getPSRV1(request).pipe(
catchError((error: unknown) => {
catchError((error: any) => {
console.log(error);
this.loadingSubject.next(false);
console.error('Error fetching PSR records:', error);
return throwError(() => error);
return of(error);
}),
),
),
Expand Down
8 changes: 5 additions & 3 deletions src/angular/hq/src/app/times/time-list/TimeList.service.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
/* eslint-disable rxjs/no-implicit-any-catch */
import { GetTimeRecordsV1, SortColumn } from '../../models/times/get-time-v1';
import { Injectable } from '@angular/core';
import { FormControl } from '@angular/forms';
Expand All @@ -9,11 +11,11 @@ import {
combineLatest,
debounceTime,
map,
of,
startWith,
switchMap,
takeUntil,
tap,
throwError,
} from 'rxjs';
import {
GetTimeRecordClientsV1,
Expand Down Expand Up @@ -176,10 +178,10 @@ export class TimeListService extends BaseListService<
tap(() => this.loadingSubject.next(true)),
switchMap((request) =>
this.hqService.getTimesV1(request).pipe(
catchError((error: unknown) => {
catchError((error: any) => {
this.loadingSubject.next(false);
console.error('Error fetching Time records:', error);
return throwError(() => error);
return of(error);
}),
),
),
Expand Down

0 comments on commit c749e6e

Please sign in to comment.