From b3d75b567d11fa6c38a35a3ababc73ee7de6e793 Mon Sep 17 00:00:00 2001 From: Jannis R Date: Mon, 27 May 2019 16:32:42 +0200 Subject: [PATCH] fix parseWarning :bug: --- p/vbb/example.js | 4 ++-- parse/warning.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/p/vbb/example.js b/p/vbb/example.js index 0049af23..aea90045 100644 --- a/p/vbb/example.js +++ b/p/vbb/example.js @@ -6,10 +6,10 @@ const vbbProfile = require('.') const client = createClient(vbbProfile, 'hafas-client-example') // Hauptbahnhof to Charlottenburg -client.journeys('900000003201', '900000024101', {results: 1, polylines: true}) +// client.journeys('900000003201', '900000024101', {results: 1, polylines: true}) // client.departures('900000013102', {duration: 1}) // client.arrivals('900000013102', {duration: 10, linesOfStops: true}) -// client.locations('Alexanderplatz', {results: 2}) +client.locations('txl A', {results: 2}) // client.stop('900000042101', {linesOfStops: true}) // Spichernstr // client.nearby({ // type: 'location', diff --git a/parse/warning.js b/parse/warning.js index f15c1c34..a5fdfe4f 100644 --- a/parse/warning.js +++ b/parse/warning.js @@ -36,7 +36,7 @@ const parseWarning = (profile, w, icons) => { priority: w.prio, category: w.cat || null // todo: parse to sth meaningful } - if ('prod' in w) res.products = client.profile.parseProducts(61442) + if ('prod' in w) res.products = profile.parseProducts(61442) // todo: pass tzOffset to `parseDateTime` if (w.sDate && w.sTime) res.validFrom = parseDateTime(profile, w.sDate, w.sTime, null)