auto-checkout for cancelled departure: guard against destination changes
This commit is contained in:
parent
cc7439dd5e
commit
2652ea6bab
1 changed files with 8 additions and 6 deletions
|
@ -81,9 +81,10 @@ sub run {
|
|||
'in_transit',
|
||||
'count(*) as count',
|
||||
{
|
||||
user_id => $uid,
|
||||
train_no => $train->train_no,
|
||||
checkin_station_id => $dep
|
||||
user_id => $uid,
|
||||
train_no => $train->train_no,
|
||||
checkin_station_id => $dep,
|
||||
checkout_station_id => $arr,
|
||||
}
|
||||
)->hash->{count}
|
||||
)
|
||||
|
@ -94,9 +95,10 @@ sub run {
|
|||
cancelled => 1,
|
||||
},
|
||||
{
|
||||
user_id => $uid,
|
||||
train_no => $train->train_no,
|
||||
checkin_station_id => $dep
|
||||
user_id => $uid,
|
||||
train_no => $train->train_no,
|
||||
checkin_station_id => $dep,
|
||||
checkout_station_id => $arr,
|
||||
}
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in a new issue