Unverified Commit cb8964fb authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

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
parent 7e494461
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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(