From c10f31811ab61dc13100c70e3c0796fdc7c8261a Mon Sep 17 00:00:00 2001 From: Yureka Date: Tue, 17 Aug 2021 20:07:38 +0200 Subject: [PATCH] Expose `realtimeDataFrom` for refreshJourney Fixes #239 --- index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 869f049a..45090d45 100644 --- a/index.js +++ b/index.js @@ -259,7 +259,10 @@ const createClient = (profile, userAgent, opt = {}) => { } const ctx = {profile, opt, common, res} - return profile.parseJourney(ctx, res.outConL[0]) + return { + realtimeDataFrom: res.planrtTS ? parseInt(res.planrtTS) : null, + ...profile.parseJourney(ctx, res.outConL[0]) + } }) }