Loading lib/Travelynx/Controller/Traewelling.pm +3 −3 Original line number Diff line number Diff line Loading @@ -30,7 +30,7 @@ sub settings { password => $password )->then( sub { my $traewelling = $self->traewelling->get($uid); my $traewelling = $self->traewelling->get( uid => $uid ); $self->param( sync_source => 'none' ); $self->render( 'traewelling', Loading @@ -53,7 +53,7 @@ sub settings { } elsif ( $self->param('action') and $self->param('action') eq 'logout' ) { $self->render_later; my $traewelling = $self->traewelling->get($uid); my $traewelling = $self->traewelling->get( uid => $uid ); $self->traewelling_api->logout_p( uid => $uid, token => $traewelling->{token} Loading Loading @@ -88,7 +88,7 @@ sub settings { return; } my $traewelling = $self->traewelling->get($uid); my $traewelling = $self->traewelling->get( uid => $uid ); if ( $traewelling->{push_sync} ) { $self->param( sync_source => 'travelynx' ); Loading lib/Travelynx/Model/Traewelling.pm +5 −3 Original line number Diff line number Diff line Loading @@ -94,11 +94,13 @@ sub unlink { } sub get { my ( $self, $uid ) = @_; $uid //= $self->current_user->{id}; my ( $self, %opt ) = @_; my $uid = $opt{uid}; my $db = $opt{db} // $self->{pg}->db; my $res_h = $self->{pg}->db->select( 'traewelling_str', '*', { user_id => $uid } ) = $db->select( 'traewelling_str', '*', { user_id => $uid } ) ->expand->hash; $res_h->{latest_run} = epoch_to_dt( $res_h->{latest_run_ts} ); Loading templates/account.html.ep +1 −1 Original line number Diff line number Diff line Loading @@ -36,7 +36,7 @@ % my $acc = current_user(); % my $hook = get_webhook(); % my $traewelling = traewelling->get($acc->{id}); % my $traewelling = traewelling->get(uid => $acc->{id}); % my $use_history = users->use_history(uid => $acc->{id}); <div class="row"> <div class="col s12"> Loading Loading
lib/Travelynx/Controller/Traewelling.pm +3 −3 Original line number Diff line number Diff line Loading @@ -30,7 +30,7 @@ sub settings { password => $password )->then( sub { my $traewelling = $self->traewelling->get($uid); my $traewelling = $self->traewelling->get( uid => $uid ); $self->param( sync_source => 'none' ); $self->render( 'traewelling', Loading @@ -53,7 +53,7 @@ sub settings { } elsif ( $self->param('action') and $self->param('action') eq 'logout' ) { $self->render_later; my $traewelling = $self->traewelling->get($uid); my $traewelling = $self->traewelling->get( uid => $uid ); $self->traewelling_api->logout_p( uid => $uid, token => $traewelling->{token} Loading Loading @@ -88,7 +88,7 @@ sub settings { return; } my $traewelling = $self->traewelling->get($uid); my $traewelling = $self->traewelling->get( uid => $uid ); if ( $traewelling->{push_sync} ) { $self->param( sync_source => 'travelynx' ); Loading
lib/Travelynx/Model/Traewelling.pm +5 −3 Original line number Diff line number Diff line Loading @@ -94,11 +94,13 @@ sub unlink { } sub get { my ( $self, $uid ) = @_; $uid //= $self->current_user->{id}; my ( $self, %opt ) = @_; my $uid = $opt{uid}; my $db = $opt{db} // $self->{pg}->db; my $res_h = $self->{pg}->db->select( 'traewelling_str', '*', { user_id => $uid } ) = $db->select( 'traewelling_str', '*', { user_id => $uid } ) ->expand->hash; $res_h->{latest_run} = epoch_to_dt( $res_h->{latest_run_ts} ); Loading
templates/account.html.ep +1 −1 Original line number Diff line number Diff line Loading @@ -36,7 +36,7 @@ % my $acc = current_user(); % my $hook = get_webhook(); % my $traewelling = traewelling->get($acc->{id}); % my $traewelling = traewelling->get(uid => $acc->{id}); % my $use_history = users->use_history(uid => $acc->{id}); <div class="row"> <div class="col s12"> Loading