parseJourney: use parseJourneyLeg from profile 🐛

This commit is contained in:
Jannis R 2018-03-21 01:14:37 +01:00
parent 98139f9210
commit cfd79b1be1
No known key found for this signature in database
GPG key ID: 0FE83946296A88A5

View file

@ -1,11 +1,9 @@
'use strict' 'use strict'
const createParseJourneyLeg = require('./journey-leg')
const clone = obj => Object.assign({}, obj) const clone = obj => Object.assign({}, obj)
const createParseJourney = (profile, stations, lines, remarks) => { const createParseJourney = (profile, stations, lines, remarks) => {
const parseLeg = createParseJourneyLeg(profile, stations, lines, remarks) const parseLeg = profile.parseJourneyLeg(profile, stations, lines, remarks)
// todo: c.sDays // todo: c.sDays
// todo: c.dep.dProgType, c.arr.dProgType // todo: c.dep.dProgType, c.arr.dProgType