From 6630cdcd9e943a9a8c2cce49b6b5e59bd6ef6710 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 5 Apr 2019 21:45:40 +0200 Subject: [PATCH] checkout: Do not cardcode action type --- lib/Travelynx.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm index 7e56468..3de3b9e 100755 --- a/lib/Travelynx.pm +++ b/lib/Travelynx.pm @@ -700,7 +700,7 @@ qq{select * from pending_mails where email = ? and num_tries > 1;} else { my $success = $self->app->action_query->execute( $self->current_user->{id}, - $self->app->action_type->{checkout}, + $action_id, $self->get_station_id( ds100 => $status->{station_ds100}, name => $status->{station_name}