Revision 59395
Added by Argiro Kokogiannaki over 3 years ago
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
[Library|Trunk]
index info service: use long cache property