From 14c9805ad817c386adfc4e77e7d1e2d25edd3ce8 Mon Sep 17 00:00:00 2001 From: Jannis R Date: Tue, 4 Apr 2023 11:38:36 +0200 Subject: [PATCH] =?UTF-8?q?journeys():=20let=20earlierRef/laterRef=20fall?= =?UTF-8?q?=20back=20to=20null=20=F0=9F=90=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)