mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 07:50:31 +00:00
fix seeding function
This commit is contained in:
@@ -68,10 +68,9 @@ export class ApiBasedRepository implements GetterRepository {
|
|||||||
* @param systemId
|
* @param systemId
|
||||||
*/
|
*/
|
||||||
public async seedCacheForSystemId(systemId: string): Promise<void> {
|
public async seedCacheForSystemId(systemId: string): Promise<void> {
|
||||||
await this.getShuttlesBySystemId(systemId);
|
await this.updateShuttlesForSystemIfTTL(systemId);
|
||||||
await this.getShuttlesByRouteId(systemId);
|
await this.updateEtasForSystemIfTTL(systemId);
|
||||||
await this.getStopsBySystemId(systemId);
|
await this.updateStopsForSystemIdIfTTL(systemId);
|
||||||
await this.getSystemById(systemId);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public async getEtaForShuttleAndStopId(shuttleId: string, stopId: string): Promise<IEta | null> {
|
public async getEtaForShuttleAndStopId(shuttleId: string, stopId: string): Promise<IEta | null> {
|
||||||
|
|||||||
Reference in New Issue
Block a user