Skip to content

Commit

Permalink
fix laterThan/earlierThan
Browse files Browse the repository at this point in the history
  • Loading branch information
traines-source committed Dec 17, 2024
1 parent 0e2d0e3 commit e05b31e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,9 @@ const createClient = (profile, userAgent, opt = {}) => {
// see rest.exe docs
// ushrp: Boolean(opt.startWithWalking),
};
query.anfrageZeitpunkt = profile.formatTime(profile, when);
if (journeysRef) {
query.pagingReference = journeysRef;
} else {
query.anfrageZeitpunkt = profile.formatTime(profile, when);
}
query.ankunftSuche = outFrwd ? 'ABFAHRT' : 'ANKUNFT';
if (opt.results !== null) {
Expand Down

0 comments on commit e05b31e

Please sign in to comment.