summaryrefslogtreecommitdiff
path: root/lib/Travelynx/Command/work.pm
diff options
context:
space:
mode:
authorDerf Null <derf@finalrewind.org>2023-03-10 16:57:31 +0100
committerDerf Null <derf@finalrewind.org>2023-03-10 16:57:31 +0100
commitf79e34fb622ddb5cf394da9928fa981c36ba3ad8 (patch)
treee71f6a09cd13bccec9bdf942ab6d803ccd8b5e93 /lib/Travelynx/Command/work.pm
parent609d7b3ebc2ed0f190799da2565910cec7d79339 (diff)
worker: select on arr and dep eva for all arr/dep updates
still missing (TODO): add_route_timestamps
Diffstat (limited to 'lib/Travelynx/Command/work.pm')
-rw-r--r--lib/Travelynx/Command/work.pm9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/Travelynx/Command/work.pm b/lib/Travelynx/Command/work.pm
index 8af88bd..7af988c 100644
--- a/lib/Travelynx/Command/work.pm
+++ b/lib/Travelynx/Command/work.pm
@@ -64,9 +64,11 @@ sub run {
}
$self->app->in_transit->update_departure(
- uid => $uid,
- train => $train,
- route => [ $self->app->iris->route_diff($train) ]
+ uid => $uid,
+ train => $train,
+ dep_eva => $dep,
+ arr_eva => $arr,
+ route => [ $self->app->iris->route_diff($train) ]
);
if ( $train->departure_is_cancelled and $arr ) {
@@ -143,6 +145,7 @@ sub run {
uid => $uid,
train => $train,
route => [ $self->app->iris->route_diff($train) ],
+ dep_eva => $dep,
arr_eva => $arr,
);