Skip to content

Commit

Permalink
Area seed data tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
suvikankare committed Jan 23, 2025
1 parent 7817fbe commit bfe4898
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions test-db-manager/src/datasets/stopRegistry/stopArea.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { StopPlaceMaintenance } from './stopPlaces';
import { getKeyValue } from './utils';

export type StopAreaSeedData = {
nameFin?: string;
nameSwe?: string;
nameFinLong?: string;
nameSweLong?: string;
Expand All @@ -25,18 +24,8 @@ export type StopAreaSeedData = {
validityStart: string; // Really a datetime, but keyValues can only take strings.
validityEnd?: string; // Really a datetime, but keyValues can only take strings.
stopType?: {
mainLine: boolean;
interchange: boolean;
railReplacement: boolean;
virtual: boolean;
};
signs?: {
signType: string /* see StopPlaceSignType */;
note?: string;
numberOfFrames: number;
lineSignage: boolean;
mainLineSign: boolean;
replacesRailSign: boolean;
};
};

Expand Down Expand Up @@ -92,7 +81,7 @@ const mapToStopAreaInput = (seedStopArea: StopAreaSeedData): StopAreaInput => {
privateCode: { type: 'HSL', value: seedStopArea.label },
name: {
lang: 'fin',
value: seedStopArea.label,
value: seedStopArea.name,
},
organisations: seedStopArea.organisations ?? null,
geometry:
Expand Down Expand Up @@ -150,7 +139,6 @@ const route35StopAreas: Array<StopAreaSeedData> = [
];

const finnooSeedData: StopAreaSeedData = {
nameFin: 'Finnoo',
nameSwe: 'Finno',
nameFinLong: 'Finnoo',
nameSweLong: 'Finno',
Expand Down

0 comments on commit bfe4898

Please sign in to comment.