diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2024-06-21 18:27:37 +0200 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2024-06-21 18:27:37 +0200 |
commit | cb8964fb3ce7006906576fca37f0c5b8b4efff70 (patch) | |
tree | eac2710d425bb028063fca9dfcf8aeabead0efac | |
parent | 7e4944614cb36eb0bcff867a7baeca5b6a9cd3b6 (diff) |
add_route_timestamps: use $train->id rather than in_transit id2.7.1
this avoids a race condition when the worker requests all current checkins and
takes a while before getting to update the data
-rwxr-xr-x | lib/Travelynx.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm index 7688136..6ecba60 100755 --- a/lib/Travelynx.pm +++ b/lib/Travelynx.pm @@ -1358,7 +1358,7 @@ sub startup { } my $route = $in_transit->{route}; - my $train_id = $in_transit->{train_id}; + my $train_id = $train->id; # TODO get_tripid_p is only needed on the first call, afterwards the tripid is known. $self->hafas->get_tripid_p( train => $train )->then( |