From 24ece9f33a0412e799aeb771a5473008767c630f Mon Sep 17 00:00:00 2001 From: Andreas Awouters Date: Fri, 12 Jan 2024 11:52:05 +0100 Subject: [PATCH] 107873: Fix lint error by renaming rxjs timer import --- src/app/core/data/processes/process-data.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/core/data/processes/process-data.service.ts b/src/app/core/data/processes/process-data.service.ts index b45970564b..bf4d72d5b3 100644 --- a/src/app/core/data/processes/process-data.service.ts +++ b/src/app/core/data/processes/process-data.service.ts @@ -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'; @@ -139,7 +139,7 @@ export class ProcessDataService extends IdentifiableDataService impleme */ autoRefreshingSearchBy(searchMethod: string, options?: FindListOptions, pollingIntervalInMs: number = 5000, ...linksToFollow: FollowLinkConfig[]): Observable>> { // 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(