Corrected some sub to helper
This commit is contained in:
parent
0682669823
commit
b33757dfd8
1 changed files with 4 additions and 4 deletions
|
@ -132,7 +132,7 @@ post '/token' => sub {
|
|||
});
|
||||
};
|
||||
|
||||
sub get_account_by_token {
|
||||
helper get_account_by_token => sub {
|
||||
my ( $self, $token ) = @_;
|
||||
|
||||
return $self->db->selectrow_hashref(
|
||||
|
@ -140,9 +140,9 @@ sub get_account_by_token {
|
|||
{},
|
||||
$token,
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
sub get_account_by_username {
|
||||
helper get_account_by_username => sub {
|
||||
my ( $self, $username ) = @_;
|
||||
|
||||
return $self->db->selectrow_hashref(
|
||||
|
@ -150,6 +150,6 @@ sub get_account_by_username {
|
|||
{},
|
||||
$username,
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
app->start;
|
||||
|
|
Reference in a new issue