Skip to content

Commit

Permalink
107873: Fix lint error by renaming rxjs timer import
Browse files Browse the repository at this point in the history
  • Loading branch information
AAwouters committed Jan 12, 2024
1 parent 833b7e7 commit 24ece9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/core/data/processes/process-data.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { ObjectCacheService } from '../../cache/object-cache.service';
import { HALEndpointService } from '../../shared/hal-endpoint.service';
import { Process } from '../../../process-page/processes/process.model';
import { PROCESS } from '../../../process-page/processes/process.resource-type';
import { Observable, timer, concatMap } from 'rxjs';
import { Observable, timer as rxjsTimer, concatMap } from 'rxjs';
import { switchMap, filter, distinctUntilChanged, find, tap } from 'rxjs/operators';
import { PaginatedList } from '../paginated-list.model';
import { Bitstream } from '../../shared/bitstream.model';
Expand Down Expand Up @@ -139,7 +139,7 @@ export class ProcessDataService extends IdentifiableDataService<Process> impleme
*/
autoRefreshingSearchBy(searchMethod: string, options?: FindListOptions, pollingIntervalInMs: number = 5000, ...linksToFollow: FollowLinkConfig<Process>[]): Observable<RemoteData<PaginatedList<Process>>> {
// Create observable that emits every pollingInterval
return timer(0, pollingIntervalInMs).pipe(
return rxjsTimer(0, pollingIntervalInMs).pipe(
concatMap(() => {
// Every time the timer emits, request the current state of the processes
return this.searchBy(searchMethod, options, false, false, ...linksToFollow).pipe(
Expand Down

0 comments on commit 24ece9f

Please sign in to comment.