Correction sur la mise en cache des
données référentiel et leurs utilisation sur la liste des sauts.
This commit is contained in:
@@ -40,8 +40,12 @@ export class AircraftService extends BaseService {
|
||||
|
||||
public getById(id: number) : Observable<AircraftResp> {
|
||||
return this.serviceCacheApi.getByKey<Array<AircraftResp>>(CacheApiKey.Aircraft)
|
||||
.pipe(map(data => {
|
||||
return data.find(f => f.id === id);
|
||||
}));
|
||||
.pipe(map(data => {
|
||||
return data.find(f => f.id === id);
|
||||
}));
|
||||
}
|
||||
|
||||
public getFromCache(): Observable<Array<AircraftResp>> {
|
||||
return this.serviceCacheApi.getByKey<Array<AircraftResp>>(CacheApiKey.Aircraft);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user