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

select latest journey based on timestamp, not ID

This avoids manually added past journeys messing with the latest travel target
parent 6ca55f83
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -704,7 +704,7 @@ sub get_latest {
			cancelled => 0
		},
		{
			order_by => { -desc => 'journey_id' },
			order_by => { -desc => 'real_dep_ts' },
			limit    => 1
		}
	)->expand->hash;