auto-checkout for cancelled departure: guard against destination changes

This commit is contained in:
Daniel Friesel 2020-02-18 17:38:53 +01:00
parent cc7439dd5e
commit 2652ea6bab

View file

@ -83,7 +83,8 @@ sub run {
{
user_id => $uid,
train_no => $train->train_no,
checkin_station_id => $dep
checkin_station_id => $dep,
checkout_station_id => $arr,
}
)->hash->{count}
)
@ -96,7 +97,8 @@ sub run {
{
user_id => $uid,
train_no => $train->train_no,
checkin_station_id => $dep
checkin_station_id => $dep,
checkout_station_id => $arr,
}
);