summaryrefslogtreecommitdiff
path: root/lib/Travelynx.pm
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-04-23 23:04:04 +0200
committerDaniel Friesel <derf@finalrewind.org>2019-04-23 23:04:04 +0200
commit4c63efe4a16c8e60693e6140d9be38bab0d35bf3 (patch)
treeee8d55b3a17bcc34ddd4f73d3a8b29d9247352c8 /lib/Travelynx.pm
parent79dcd4677e6718687a77c0d253e67beb1d616af3 (diff)
Remove legacy action_type attributes
Diffstat (limited to 'lib/Travelynx.pm')
-rwxr-xr-xlib/Travelynx.pm19
1 files changed, 2 insertions, 17 deletions
diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm
index 63faafd..276c958 100755
--- a/lib/Travelynx.pm
+++ b/lib/Travelynx.pm
@@ -118,21 +118,6 @@ sub startup {
);
$self->attr(
- action_type => sub {
- return {
- checkin => 1,
- checkout => 2,
- cancelled_from => 4,
- cancelled_to => 5,
- };
- }
- );
- $self->attr(
- action_types => sub {
- return [qw(checkin checkout undo cancelled_from cancelled_to)];
- }
- );
- $self->attr(
token_type => sub {
return {
status => 1,
@@ -274,7 +259,7 @@ sub startup {
'user_actions',
{
user_id => $uid,
- action_id => $self->app->action_type->{checkin},
+ action_id => 'checkin',
station_id => $self->get_station_id(
ds100 => $dep_station->[0],
name => $dep_station->[1],
@@ -303,7 +288,7 @@ sub startup {
'user_actions',
{
user_id => $uid,
- action_id => $self->app->action_type->{checkout},
+ action_id => 'checkout',
station_id => $self->get_station_id(
ds100 => $arr_station->[0],
name => $arr_station->[1],