diff options
author | Derf Null <derf@finalrewind.org> | 2023-03-10 17:18:08 +0100 |
---|---|---|
committer | Derf Null <derf@finalrewind.org> | 2023-03-10 17:18:08 +0100 |
commit | abc1e4e3a8f94682076eb6d588c1b521ae71e98a (patch) | |
tree | 37f23f3ee2af040d55fa10a8dacc286ffbde7a65 /lib/Travelynx/Command | |
parent | f79e34fb622ddb5cf394da9928fa981c36ba3ad8 (diff) |
work: avoid race conditions with frontend when calling checkout
Diffstat (limited to 'lib/Travelynx/Command')
-rw-r--r-- | lib/Travelynx/Command/work.pm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Travelynx/Command/work.pm b/lib/Travelynx/Command/work.pm index 7af988c..a4a98e6 100644 --- a/lib/Travelynx/Command/work.pm +++ b/lib/Travelynx/Command/work.pm @@ -91,6 +91,8 @@ sub run { $self->app->checkout( station => $arr, force => 1, + dep_eva => $dep, + arr_eva => $arr, uid => $uid ); } @@ -156,6 +158,8 @@ sub run { $self->app->checkout( station => $arr, force => 0, + dep_eva => $dep, + arr_eva => $arr, uid => $uid ); } @@ -167,6 +171,8 @@ sub run { my ( undef, $error ) = $self->app->checkout( station => $arr, force => 1, + dep_eva => $dep, + arr_eva => $arr, uid => $uid ); if ($error) { |