Skip to content

Commit 40289b1

Browse files
committed
backend: remove unused product
1 parent 1728ec1 commit 40289b1

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

backend/lib/merge.ts

-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ const mergeConnections = (
2020
lineInformation: {
2121
fahrtNr: (connectionA?.lineInformation?.fahrtNr || connectionB?.lineInformation?.fahrtNr) ?? undefined, // HAFAS (`dbnav` profile) contains the line number (e.g. MEX 12)
2222
lineName: (connectionA?.lineInformation?.lineName || connectionB?.lineInformation?.lineName) ?? undefined,
23-
product: (connectionA?.lineInformation?.product || connectionB?.lineInformation?.product) ?? undefined,
2423
operator: connectionA?.lineInformation?.operator ?? undefined
2524
},
2625
cancelled: (connectionA?.cancelled || connectionB?.cancelled) ?? false

backend/models/connection.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ export interface Connection {
1818
departure?: Time;
1919
arrival?: Time;
2020
lineInformation?: {
21-
type?: string; // from Bahnhof API, uppercase
22-
product?: string; // from Vendo, lowercase
21+
type?: string; // see product.ts for value
2322
replacementServiceType?: string;
2423
lineName?: string;
2524
additionalLineName?: string;

0 commit comments

Comments
 (0)