action#checkin: re-add auto checkout

was removed from $self->checkin in 1074f248cc
This commit is contained in:
Birte Kristina Friesel 2023-07-16 17:20:36 +02:00
parent 81fb92199c
commit f9d1c266ce
No known key found for this signature in database
GPG key ID: 19E6E524EBB177BA

View file

@ -621,6 +621,14 @@ sub travel_action {
if ( $params->{action} eq 'checkin' ) {
my $status = $self->get_user_status;
if ( $status->{checked_in}
and $status->{arr_eva}
and $status->{arrival_countdown} <= 0 )
{
$self->checkout( station => $status->{arr_eva} );
}
$self->render_later;
$self->checkin_p(
station => $params->{station},