Skip to content
Snippets Groups Projects
Commit a3149add authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

Fix checkin via API. Broken by 717cc18a

Closes #44
parent 39e12ec3
No related branches found
Tags 1.17.1
No related merge requests found
......@@ -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 => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment