[angular-16-community-projects-availableSince | DONE | UPDATE] : add method to get last date that db is loaded
This commit is contained in:
parent
660387b8da
commit
065d73bb3e
|
@ -25,6 +25,10 @@ export class IndexInfoService {
|
|||
let url = properties.indexInfoAPI;
|
||||
return this.http.get((properties.useLongCache)? (properties.cacheUrl+encodeURIComponent(url)): url).pipe(map(res => res['orcid_update_date'])).pipe(catchError(err => {return of(null)}));
|
||||
}
|
||||
getDBLoadLastDate(properties: EnvProperties): Observable<any> {
|
||||
let url = properties.indexInfoAPI;
|
||||
return this.http.get((properties.useLongCache)? (properties.cacheUrl+encodeURIComponent(url)): url).pipe(map(res => res['db_load_date'])).pipe(catchError(err => {return of(null)}));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue