diff options
Diffstat (limited to 'lib/Travelynx/Command')
-rw-r--r-- | lib/Travelynx/Command/maintenance.pm | 2 | ||||
-rw-r--r-- | lib/Travelynx/Command/work.pm | 10 |
2 files changed, 8 insertions, 4 deletions
diff --git a/lib/Travelynx/Command/maintenance.pm b/lib/Travelynx/Command/maintenance.pm index e92018e..d9ce55a 100644 --- a/lib/Travelynx/Command/maintenance.pm +++ b/lib/Travelynx/Command/maintenance.pm @@ -111,6 +111,8 @@ sub run { my $stats_res = $db->delete( 'journey_stats', { user_id => $uid } ); my $journeys_res = $db->delete( 'journeys', { user_id => $uid } ); my $transit_res = $db->delete( 'in_transit', { user_id => $uid } ); + + # TODO + traewelling, webhooks my $password_res = $db->delete( 'pending_passwords', { user_id => $uid } ); my $user_res = $db->delete( 'users', { id => $uid } ); diff --git a/lib/Travelynx/Command/work.pm b/lib/Travelynx/Command/work.pm index a97dc62..a43a5b9 100644 --- a/lib/Travelynx/Command/work.pm +++ b/lib/Travelynx/Command/work.pm @@ -60,8 +60,9 @@ sub run { { dep_platform => $train->platform, real_departure => $train->departure, - route => - $json->encode( [ $self->app->route_diff($train) ] ), + route => $json->encode( + [ $self->app->iris->route_diff($train) ] + ), messages => $json->encode( [ map { [ $_->[0]->epoch, $_->[1] ] } @@ -170,8 +171,9 @@ sub run { arr_platform => $train->platform, sched_arrival => $train->sched_arrival, real_arrival => $train->arrival, - route => - $json->encode( [ $self->app->route_diff($train) ] ), + route => $json->encode( + [ $self->app->iris->route_diff($train) ] + ), messages => $json->encode( [ map { [ $_->[0]->epoch, $_->[1] ] } |