get latets stations: remove duplicates

This commit is contained in:
Daniel Friesel 2023-01-22 10:32:06 +01:00
parent 3e2491a9bc
commit af82c46d57
No known key found for this signature in database
GPG key ID: 100D5BFB5166E005

View file

@ -416,7 +416,8 @@ sub homepage {
}
}
else {
@recent_targets = $self->journeys->get_latest_checkout_stations(
@recent_targets = uniq_by { $_->{eva} }
$self->journeys->get_latest_checkout_stations(
uid => $self->current_user->{id} );
}
$self->render(