This commit is contained in:
Sébastien André
2021-05-03 09:40:30 +02:00
parent 08c923cc72
commit 2e8182d153
7 changed files with 24 additions and 15 deletions

View File

@@ -23,6 +23,7 @@ export class StatsService extends BaseService {
this.serviceCacheApi.delete(CacheApiKey.StatsByAircraft);
this.serviceCacheApi.delete(CacheApiKey.StatsByJumpType);
this.serviceCacheApi.delete(CacheApiKey.StatsByGear);
this.serviceCacheApi.delete(CacheApiKey.StatsByYear);
this.serviceCacheApi.delete(CacheApiKey.StatsOfLastYear);
this.serviceCacheApi.delete(CacheApiKey.StatsOfLastMonth);
}
@@ -96,7 +97,7 @@ export class StatsService extends BaseService {
})
);
return this.serviceCacheApi.get<Array<StatsByYearResp>>(CacheApiKey.StatsByGear, callToApi);
return this.serviceCacheApi.get<Array<StatsByYearResp>>(CacheApiKey.StatsByYear, callToApi);
}
public getStatsOfLastYear(): Observable<StatsForLastYearResp> {