mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-22 22:59:35 +02:00
journeys(): let earlierRef/laterRef fall back to null 🐛
This commit is contained in:
parent
8faf8ba507
commit
14c9805ad8
1 changed files with 2 additions and 2 deletions
4
index.js
4
index.js
|
@ -236,8 +236,8 @@ const createClient = (profile, userAgent, opt = {}) => {
|
|||
.map(j => profile.parseJourney(ctx, j))
|
||||
|
||||
return {
|
||||
earlierRef: res.outCtxScrB,
|
||||
laterRef: res.outCtxScrF,
|
||||
earlierRef: res.outCtxScrB || null,
|
||||
laterRef: res.outCtxScrF || null,
|
||||
journeys,
|
||||
realtimeDataUpdatedAt: res.planrtTS && res.planrtTS !== '0'
|
||||
? parseInt(res.planrtTS)
|
||||
|
|
Loading…
Add table
Reference in a new issue