fix seeding function

This commit is contained in:
2025-01-09 13:23:11 -08:00
parent d7bc9b1923
commit 404c391dfa

View File

@@ -68,10 +68,9 @@ export class ApiBasedRepository implements GetterRepository {
* @param systemId
*/
public async seedCacheForSystemId(systemId: string): Promise<void> {
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<IEta | null> {