diff options
Diffstat (limited to 'lib/Travelynx.pm')
-rwxr-xr-x | lib/Travelynx.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm index ac3ae8d..882aab6 100755 --- a/lib/Travelynx.pm +++ b/lib/Travelynx.pm @@ -1242,7 +1242,8 @@ sub startup { $self->dbdb->has_wagonorder_p( $train->sched_departure, $train->train_no )->then( sub { - return $self->dbdb->get_wagonorder_p( + my ($api) = @_; + return $self->dbdb->get_wagonorder_p( $api, $train->sched_departure, $train->train_no ); } )->then( |