diff --git a/src/repositories/ApiBasedRepository.ts b/src/repositories/ApiBasedRepository.ts index 6a24b7f..4ebf8eb 100644 --- a/src/repositories/ApiBasedRepository.ts +++ b/src/repositories/ApiBasedRepository.ts @@ -68,10 +68,9 @@ export class ApiBasedRepository implements GetterRepository { * @param systemId */ public async seedCacheForSystemId(systemId: string): Promise { - await this.getShuttlesBySystemId(systemId); - await this.getShuttlesByRouteId(systemId); - await this.getStopsBySystemId(systemId); - await this.getSystemById(systemId); + await this.updateShuttlesForSystemIfTTL(systemId); + await this.updateEtasForSystemIfTTL(systemId); + await this.updateStopsForSystemIdIfTTL(systemId); } public async getEtaForShuttleAndStopId(shuttleId: string, stopId: string): Promise {