journeys(): let earlierRef/laterRef fall back to null 🐛

This commit is contained in:
Jannis R 2023-04-04 11:38:36 +02:00
parent 8faf8ba507
commit 14c9805ad8
No known key found for this signature in database
GPG key ID: 0FE83946296A88A5

View file

@ -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)