mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 07:50:31 +00:00
rename files for consistency
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { IOrderedStop, IRoute, IShuttle, IStop, ISystem, Repository } from "../repositories/repository";
|
||||
import { IOrderedStop, IRoute, IShuttle, IStop, ISystem, GetterSetterRepository } from "../repositories/GetterSetterRepository";
|
||||
|
||||
const timeout = 10000;
|
||||
const systemIdsToSupport = ["263"];
|
||||
@@ -23,7 +23,7 @@ export class RepositoryDataLoader {
|
||||
private shouldBeRunning: boolean = false;
|
||||
|
||||
constructor(
|
||||
private repository: Repository,
|
||||
private repository: GetterSetterRepository,
|
||||
) {}
|
||||
|
||||
public async start() {
|
||||
@@ -1,5 +1,5 @@
|
||||
// Mock data
|
||||
import { IEta, IOrderedStop, IRoute, IShuttle, IStop, ISystem, Repository } from "../repositories/repository";
|
||||
import { IEta, IOrderedStop, IRoute, IShuttle, IStop, ISystem, GetterSetterRepository } from "../repositories/GetterSetterRepository";
|
||||
|
||||
const systems: ISystem[] = [
|
||||
{
|
||||
@@ -103,7 +103,7 @@ const etas: IEta[] = [
|
||||
}
|
||||
];
|
||||
|
||||
export async function loadTestData(repository: Repository) {
|
||||
export async function loadTestData(repository: GetterSetterRepository) {
|
||||
await Promise.all(systems.map(async (system) => {
|
||||
await repository.addOrUpdateSystem(system);
|
||||
}));
|
||||
Reference in New Issue
Block a user