mirror of
https://github.com/derf/travelynx
synced 2024-11-10 06:54:17 +00:00
add_route_timestamps: use $train->id rather than in_transit id
this avoids a race condition when the worker requests all current checkins and takes a while before getting to update the data
This commit is contained in:
parent
7e4944614c
commit
cb8964fb3c
1 changed files with 1 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue