Fix checkin via API. Broken by 717cc18a40

Closes #44
This commit is contained in:
Daniel Friesel 2020-09-05 21:51:52 +02:00
parent 39e12ec32e
commit a3149adddd

View file

@ -223,7 +223,11 @@ sub travel_v1 {
else {
my $train_type = sanitize( q{}, $payload->{train}{type} );
my $train_no = sanitize( q{}, $payload->{train}{no} );
my $status = $self->get_departures( $from_station, 140, 40, 0 );
my $status = $self->iris->get_departures(
station => $from_station,
lookbehind => 140,
lookahead => 40
);
if ( $status->{errstr} ) {
$self->render(
json => {