diff options
author | Daniel Friesel <derf@finalrewind.org> | 2022-02-16 20:39:49 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2022-02-16 20:39:49 +0100 |
commit | ef3252863e28905fe96a49a91e5a62c156c69e6e (patch) | |
tree | bea7dc3685a41ed86c684f130e6e33f2707d5a43 /lib/Travelynx/Controller/Traewelling.pm | |
parent | 8f906da9c29fdb63699fbfa4e82deba560b62ca4 (diff) |
Traewelling::get: Use named args
Diffstat (limited to 'lib/Travelynx/Controller/Traewelling.pm')
-rw-r--r-- | lib/Travelynx/Controller/Traewelling.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Travelynx/Controller/Traewelling.pm b/lib/Travelynx/Controller/Traewelling.pm index e906b1f..d3e6d6c 100644 --- a/lib/Travelynx/Controller/Traewelling.pm +++ b/lib/Travelynx/Controller/Traewelling.pm @@ -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', @@ -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} @@ -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' ); |