mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-22 22:59:35 +02:00
parseTrip: remove trip.reachable 💥✅
This commit is contained in:
parent
30cb1f3d28
commit
b740539081
5 changed files with 1 additions and 5 deletions
|
@ -27,7 +27,7 @@ const parseTrip = (ctx, t) => { // t = raw trip
|
|||
const trip = profile.parseJourneyLeg(ctx, fakeLeg, date)
|
||||
trip.id = trip.tripId
|
||||
delete trip.tripId
|
||||
// todo [breaking]: delete trip.reachable
|
||||
delete trip.reachable
|
||||
|
||||
if (opt.scheduledDays) {
|
||||
const nrOfStopovers = t.stopL.length
|
||||
|
|
1
test/fixtures/bvg-trip-with-occupancy.js
vendored
1
test/fixtures/bvg-trip-with-occupancy.js
vendored
|
@ -3,7 +3,6 @@
|
|||
module.exports = {
|
||||
id: '1|6849|3|86|1112021',
|
||||
direction: 'S Ostbahnhof via S+U Wedding',
|
||||
reachable: true,
|
||||
line: {
|
||||
type: 'line',
|
||||
id: '147',
|
||||
|
|
1
test/fixtures/oebb-trip.js
vendored
1
test/fixtures/oebb-trip.js
vendored
|
@ -108,7 +108,6 @@ module.exports = {
|
|||
plannedDeparture: '2020-06-11T16:33:00+02:00',
|
||||
departureDelay: null,
|
||||
departurePrognosisType: 'prognosed',
|
||||
reachable: true,
|
||||
line: {
|
||||
type: 'line',
|
||||
id: 'rj-742',
|
||||
|
|
1
test/fixtures/rejseplanen-trip.js
vendored
1
test/fixtures/rejseplanen-trip.js
vendored
|
@ -1,7 +1,6 @@
|
|||
'use strict'
|
||||
|
||||
module.exports = {
|
||||
reachable: true, // todo: drop this field
|
||||
id: '1|307|4|86|12102021',
|
||||
direction: 'CPH Lufthavn',
|
||||
currentLocation: {
|
||||
|
|
1
test/fixtures/vbb-on-demand-trip.js
vendored
1
test/fixtures/vbb-on-demand-trip.js
vendored
|
@ -19,7 +19,6 @@ module.exports = {
|
|||
name: 'Verkehrsgesellschaft Teltow-Fläming mbH'
|
||||
},
|
||||
},
|
||||
reachable: true,
|
||||
|
||||
origin: {},
|
||||
departure: null,
|
||||
|
|
Loading…
Add table
Reference in a new issue