Project

General

Profile

« Previous | Next » 

Revision 59395

[Library|Trunk]

index info service: use long cache property

View differences:

modules/uoa-services-library/trunk/ng-openaire-library/src/app/utils/indexInfo.service.ts
15 15

  
16 16
  getLastIndexDate(properties: EnvProperties): Observable<any> {
17 17
    let url = properties.indexInfoAPI;
18
    return this.http.get((properties.useCache)? (properties.cacheUrl+encodeURIComponent(url)): url).pipe(map(res => res['claim_load_date'])).pipe(catchError(err => {return of(null)}));
18
    return this.http.get((properties.useLongCache)? (properties.cacheUrl+encodeURIComponent(url)): url).pipe(map(res => res['claim_load_date'])).pipe(catchError(err => {return of(null)}));
19 19
  }
20 20
}
21 21

  

Also available in: Unified diff