diff --git a/p/db/index.js b/p/db/index.js index 812cb94d..e43c00b1 100644 --- a/p/db/index.js +++ b/p/db/index.js @@ -62,7 +62,11 @@ const createParseJourney = (profile, stations, lines, remarks) => { ) { const tariff = j.trfRes.fareSetL[0].fareL[0] if (tariff.prc >= 0) { // wat - res.price = {amount: tariff.prc / 100, hint: null} + res.price = { + amount: tariff.prc / 100, + currency: 'EUR', + hint: null + } } } @@ -96,7 +100,9 @@ const dbProfile = { // todo: parseLocation parseJourney: createParseJourney, - formatStation + formatStation, + + journeyLeg: true } module.exports = dbProfile diff --git a/test/db.js b/test/db.js index dee3e6b1..21dc36e5 100644 --- a/test/db.js +++ b/test/db.js @@ -199,7 +199,7 @@ test('earlier/later journeys, Jungfernheide -> München Hbf', co(function* (t) { t.end() })) -test.skip('journey leg details', co(function* (t) { +test('journey leg details', co(function* (t) { const journeys = yield client.journeys(berlinHbf, münchenHbf, { results: 1, when })