Skip to content

Commit

Permalink
Revert "Extend notifications to include behovsanlop. (#320)" (#325)
Browse files Browse the repository at this point in the history
This reverts commit 94660fd.
  • Loading branch information
mortennordseth authored Aug 22, 2024
1 parent dcc0db8 commit 9080d01
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 21 deletions.
6 changes: 0 additions & 6 deletions src/page-modules/assistant/server/journey-planner/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -397,11 +397,6 @@ export function createJourneyApi(
: {}),
}
: null,
toEstimatedCall: leg.toEstimatedCall?.notices.length
? {
notices: mapAndFilterNotices(leg.toEstimatedCall.notices),
}
: null,

interchangeTo: leg.interchangeTo?.toServiceJourney?.id
? {
Expand All @@ -420,7 +415,6 @@ export function createJourneyApi(
...(leg.serviceJourney?.notices || []),
...(leg.serviceJourney?.journeyPattern?.notices || []),
...(leg.fromEstimatedCall?.notices || []),
...(leg.toEstimatedCall?.notices || []),
]),
situations: mapSituations(leg.situations),
serviceJourneyEstimatedCalls: leg.serviceJourneyEstimatedCalls.map(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,6 @@ query TripsWithDetails(
}
cancellation
}
toEstimatedCall {
notices {
...notice
}
}
interchangeTo {
guaranteed
maximumWaitTime
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,6 @@ query ViaTripsWithDetails(
}
cancellation
}
toEstimatedCall {
notices {
...notice
}
}
interchangeTo {
guaranteed
maximumWaitTime
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,6 @@ export const tripPatternWithDetailsSchema = z.object({
cancellation: z.boolean(),
})
.nullable(),
toEstimatedCall: z
.object({
notices: z.array(noticeSchema),
})
.nullable(),
interchangeTo: z
.object({
guaranteed: z.boolean(),
Expand Down

0 comments on commit 9080d01

Please sign in to comment.