index.pl: Always use get_user_id without argument

This commit is contained in:
Daniel Friesel 2018-09-03 18:12:18 +02:00
parent f9c7c89528
commit 355bca93c1

View file

@ -424,7 +424,7 @@ helper 'get_user_id' => sub {
helper 'get_user_travels' => sub { helper 'get_user_travels' => sub {
my ($self) = @_; my ($self) = @_;
my $uid = $self->get_user_id( $self->get_user_name ); my $uid = $self->get_user_id;
$self->app->get_all_actions_query->execute($uid); $self->app->get_all_actions_query->execute($uid);
my @travels; my @travels;
@ -473,7 +473,7 @@ helper 'get_user_travels' => sub {
helper 'get_user_status' => sub { helper 'get_user_status' => sub {
my ($self) = @_; my ($self) = @_;
my $uid = $self->get_user_id( $self->get_user_name ); my $uid = $self->get_user_id;
$self->app->get_last_actions_query->execute($uid); $self->app->get_last_actions_query->execute($uid);
my $rows = $self->app->get_last_actions_query->fetchall_arrayref; my $rows = $self->app->get_last_actions_query->fetchall_arrayref;