rename update method and update return types

This commit is contained in:
2025-04-06 09:51:13 -07:00
parent 7e0c1f3539
commit 695fec1fce
10 changed files with 26 additions and 28 deletions

View File

@@ -59,7 +59,7 @@ export class ApiBasedShuttleRepositoryLoader implements ShuttleRepositoryLoader
name: system.fullname,
};
await this.repository.addOrUpdateSystem(constructedSystem);
await this.repository.updateSystem(constructedSystem);
systemIds.delete(constructedSystem.id);
}));
} else {

View File

@@ -4456,7 +4456,7 @@ const etas: IEta[] = [
export async function loadShuttleTestData(repository: ShuttleGetterSetterRepository) {
await Promise.all(systems.map(async (system) => {
await repository.addOrUpdateSystem(system);
await repository.updateSystem(system);
}));
await Promise.all(routes.map(async (route) => {
await repository.addOrUpdateRoute(route);