From abc1e4e3a8f94682076eb6d588c1b521ae71e98a Mon Sep 17 00:00:00 2001 From: Derf Null Date: Fri, 10 Mar 2023 17:18:08 +0100 Subject: work: avoid race conditions with frontend when calling checkout --- lib/Travelynx/Command/work.pm | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/Travelynx/Command/work.pm') 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) { -- cgit v1.2.3