diff --git a/index.js b/index.js index 7ed5c3a0..d9b411a0 100644 --- a/index.js +++ b/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)