[Library|Trunk]
index info service: use long cache property git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@59395 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
1d0d3d80a4
commit
3279e56566
|
@ -15,7 +15,7 @@ export class IndexInfoService {
|
|||
|
||||
getLastIndexDate(properties: EnvProperties): Observable<any> {
|
||||
let url = properties.indexInfoAPI;
|
||||
return this.http.get((properties.useCache)? (properties.cacheUrl+encodeURIComponent(url)): url).pipe(map(res => res['claim_load_date'])).pipe(catchError(err => {return of(null)}));
|
||||
return this.http.get((properties.useLongCache)? (properties.cacheUrl+encodeURIComponent(url)): url).pipe(map(res => res['claim_load_date'])).pipe(catchError(err => {return of(null)}));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue